eigen/doc/CMakeLists.txt

30 lines
598 B
CMake
Raw Normal View History

IF(BUILD_DOC)
IF(CMAKE_COMPILER_IS_GNUCXX)
IF(CMAKE_SYSTEM_NAME MATCHES Linux)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O1 -g1")
ENDIF(CMAKE_SYSTEM_NAME MATCHES Linux)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
)
2007-09-28 14:17:36 +08:00
SET(examples_targets "")
SET(snippets_targets "")
ADD_SUBDIRECTORY(examples)
ADD_SUBDIRECTORY(snippets)
ADD_CUSTOM_TARGET(
run_doxygen
ALL
COMMAND doxygen
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
ADD_DEPENDENCIES(run_doxygen all_snippets all_examples)
ENDIF(BUILD_DOC)