mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
252e0c45b2
* show svn revision number if available * fix warnings about unused argc/argv Gael: I just saw your latest docs, it's completely awesome.
45 lines
1.3 KiB
CMake
45 lines
1.3 KiB
CMake
|
|
SET_DIRECTORY_PROPERTIES(PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
|
|
|
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
|
|
)
|
|
|
|
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
|
|
)
|
|
|
|
SET(examples_targets "")
|
|
SET(snippets_targets "")
|
|
|
|
ADD_SUBDIRECTORY(examples)
|
|
ADD_SUBDIRECTORY(snippets)
|
|
|
|
ADD_CUSTOM_TARGET(
|
|
doc
|
|
ALL
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/html/
|
|
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/
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/buildexamplelist.sh ${CMAKE_SOURCE_DIR} > ${CMAKE_CURRENT_BINARY_DIR}/ExampleList.dox
|
|
COMMAND doxygen
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
ADD_DEPENDENCIES(doc all_snippets all_examples)
|