comparison doc/CMakeLists.txt @ 24:de67047ca229

Add documentation generation
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Feb 2014 15:12:24 +0000
parents
children 35d6b371ba63
comparison
equal deleted inserted replaced
23:7d07d261b003 24:de67047ca229
1 include (FindDoxygen)
2
3 set_directory_properties (PROPERTIES CLEAN_NO_CUSTOM true)
4 set_directory_properties (PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ".built-html")
5
6 if (NOT DOXYGEN_EXECUTABLE)
7 message (STATUS "WARNING: Doxygen is required to build the docs.")
8 else()
9 add_custom_target (doc COMMENT "Building documentation..."
10 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/.built-html)
11 endif()
12
13 add_custom_command (OUTPUT .built-html
14 COMMAND sh
15 ARGS -c \"${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile && touch ${CMAKE_CURRENT_BINARY_DIR}/.built-html\;\"
16 ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
17 )

http://wald.intevation.org/projects/trustbridge/