2008-08-27 07:07:33 +08:00
|
|
|
|
|
|
|
SET_DIRECTORY_PROPERTIES(PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
2007-12-21 17:30:32 +08:00
|
|
|
|
2008-05-28 12:38:16 +08:00
|
|
|
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)
|
|
|
|
|
2007-12-21 17:02:24 +08:00
|
|
|
CONFIGURE_FILE(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
|
|
|
)
|
2007-09-28 14:17:36 +08:00
|
|
|
|
2008-08-25 18:49:53 +08:00
|
|
|
CONFIGURE_FILE(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/eigendoxy_header.html.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/eigendoxy_header.html
|
|
|
|
)
|
|
|
|
|
|
|
|
CONFIGURE_FILE(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/eigendoxy_footer.html.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/eigendoxy_footer.html
|
|
|
|
)
|
|
|
|
|
2007-12-21 19:29:04 +08:00
|
|
|
SET(examples_targets "")
|
|
|
|
SET(snippets_targets "")
|
|
|
|
|
2007-12-21 18:35:00 +08:00
|
|
|
ADD_SUBDIRECTORY(examples)
|
2007-12-21 17:30:32 +08:00
|
|
|
ADD_SUBDIRECTORY(snippets)
|
|
|
|
|
2007-12-21 19:29:04 +08:00
|
|
|
ADD_CUSTOM_TARGET(
|
2008-08-27 07:07:33 +08:00
|
|
|
doc
|
2007-12-21 19:29:04 +08:00
|
|
|
ALL
|
2008-08-27 14:43:42 +08:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/html/
|
2008-08-25 18:49:53 +08:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/eigendoxy_tabs.css
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/html/
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/Eigen_Silly_Professor_64x64.png
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/html/
|
2008-07-20 04:36:41 +08:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/buildexamplelist.sh ${CMAKE_SOURCE_DIR} > ${CMAKE_CURRENT_BINARY_DIR}/ExampleList.dox
|
2007-12-21 19:29:04 +08:00
|
|
|
COMMAND doxygen
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
2008-08-27 07:07:33 +08:00
|
|
|
ADD_DEPENDENCIES(doc all_snippets all_examples)
|