@@ -72,7 +72,6 @@ endif()
7272
7373################################ CMAKE OPTIONS ##################################
7474
75- option (WITH_DOC "Build documentation using python-sphinx and doxygen" OFF )
7675option (VERBOSITY "Set MOOSE verbosity level (deprecated)" 0)
7776## Unit testing and debug mode.
7877option (DEBUG "Build with debug support" OFF )
@@ -201,10 +200,6 @@ if(LIBSBML_FOUND)
201200 find_package (LibXML2 REQUIRED)
202201 endif ()
203202 include_directories (${LibXML2_INCLUDE_DIRS} )
204- if (${LIBSBML_LIBRARY_DIRS} )
205- target_link_libraries (libmoose PROPERTIES LINK_FLAGS "-L${LIBSBML_LIBRARY_DIRS} " )
206- endif ()
207-
208203else ()
209204 message (
210205 "======================================================================\n "
@@ -267,23 +262,17 @@ if(WITH_GSL)
267262 # top level.
268263 include_directories ( ${GSL_INCLUDE_DIRS} )
269264elseif (WITH_BOOST)
270- find_package (Boost 1.44 COMPONENTS filesystem REQUIRED)
265+ find_package (Boost 1.44 COMPONENTS filesystem random REQUIRED)
271266 find_package ( LAPACK REQUIRED )
272267 add_definitions ( -DUSE_BOOST -UUSE_GSL )
273268 include_directories ( ${Boost_INCLUDE_DIRS} )
274- # check_include_file_cxx(
275- # ${Boost_INCLUDE_DIRS}/boost/random/random_device.hpp
276- # BOOST_RANDOM_DEVICE_EXISTS
277- # )
278- # if(BOOST_RANDOM_DEVICE_EXISTS)
279- # add_definitions(-DBOOST_RANDOM_DEVICE_EXISTS)
280- # endif(BOOST_RANDOM_DEVICE_EXISTS)
281- # check_include_file_cxx(
282- # ${Boost_INCLUDE_DIRS}/boost/filesystem.hpp BOOST_FILESYSTEM_EXISTS
283- # )
284- # if(BOOST_FILESYSTEM_EXISTS)
285- # add_definitions( -DBOOST_FILESYSTEM_EXISTS )
286- # endif(BOOST_FILESYSTEM_EXISTS)
269+ check_include_file_cxx(
270+ ${Boost_INCLUDE_DIRS} /boost/random/random_device.hpp
271+ BOOST_RANDOM_DEVICE_EXISTS
272+ )
273+ if (BOOST_RANDOM_DEVICE_EXISTS)
274+ add_definitions (-DBOOST_RANDOM_DEVICE_EXISTS)
275+ endif (BOOST_RANDOM_DEVICE_EXISTS)
287276endif ()
288277
289278## Setup hdf5
@@ -513,42 +502,14 @@ if(CMAKE_VERSION VERSION_LESS "2.8.0")
513502 target_link_libraries (moose.bin PUBLIC moose)
514503ELSE ()
515504 target_link_libraries (moose.bin LINK_PUBLIC moose)
516- if (LIBSBML_FOUND)
517- target_link_libraries (moose.bin LINK_PUBLIC ${LIBSBML_LIBRARIES} )
518- endif (LIBSBML_FOUND)
519505ENDIF ()
520506
521- if (WITH_DOC)
522- FIND_PACKAGE (Doxygen REQUIRED)
523- add_custom_command (TARGET libmoose POST_BUILD
524- COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR} /Doxyfile.full
525- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
526- COMMENT "Building developer documentation"
527- VERBATIM
528- )
529- endif (WITH_DOC)
530-
531507######################### BUILD PYMOOSE ########################################
532508# Root of all python module.
533509if (WITH_PYTHON)
534510 add_subdirectory ( pymoose )
535511endif (WITH_PYTHON)
536512
537- ## Moose documentation
538- option (WITH_DOC "Build documentation using python-sphinx and doxygen" OFF )
539- if (WITH_DOC)
540- FIND_PACKAGE (Sphinx REQUIRED)
541- message (STATUS "Build documentation." )
542- set (USER_DOC_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /Docs/user/py/_build/html)
543- set (DEVELOPER_DOC_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR} /Docs/developer/html)
544- ADD_CUSTOM_TARGET (docs ALL
545- COMMAND ./docgen
546- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
547- COMMENT "Generating html doc using sphinx and doxygen"
548- )
549-
550- endif (WITH_DOC)
551-
552513######################### INSTALL ##############################################
553514
554515install (TARGETS moose.bin
@@ -575,17 +536,6 @@ if(WITH_PYTHON)
575536
576537endif (WITH_PYTHON)
577538
578- if (WITH_DOC)
579- message (STATUS "Installing moose doc" )
580- install (DIRECTORY ${USER_DOC_OUTPUT_DIR}
581- DESTINATION share/doc /moose
582- )
583-
584- install (DIRECTORY ${DEVELOPER_DOC_OUTPUT_DIR}
585- DESTINATION share/doc /moose/developer
586- )
587- endif ()
588-
589539# Print message to start build process
590540if (${CMAKE_BUILD_TOOL} MATCHES "make" )
591541 message (
0 commit comments