comparison CMakeLists.txt @ 644:0a947aec477c

doxygen: use CMake macro
author David Demelier <markand@malikania.fr>
date Wed, 01 Aug 2018 14:06:11 +0200
parents 18aa7181e0c3
children 5bd9424a523a
comparison
equal deleted inserted replaced
643:29e6ef5cd606 644:0a947aec477c
106 ) 106 )
107 endif () 107 endif ()
108 endfunction() 108 endfunction()
109 109
110 if (DOXYGEN_FOUND) 110 if (DOXYGEN_FOUND)
111 configure_file( 111 set(DOXYGEN_PROJECT_NAME code)
112 ${CMAKE_SOURCE_DIR}/doxygen/Doxyfile.in 112 set(DOXYGEN_STRIP_FROM_PATH ${code_SOURCE_DIR}/cpp)
113 ${CMAKE_BINARY_DIR}/Doxyfile 113 set(DOXYGEN_FILE_PATTERNS "*.hpp")
114 set(DOXYGEN_WARN_NO_PARAMDOC YES)
115 set(DOXYGEN_WARN_AS_ERROR YES)
116 set(DOXYGEN_QUIET YES)
117
118 doxygen_add_docs(
119 doxygen
120 ${code_SOURCE_DIR}/cpp
121 WORKING_DIRECTORY ${code_SOURCE_DIR}
114 ) 122 )
115 123
116 add_custom_target( 124 add_custom_target(docs ALL DEPENDS doxygen)
117 doxygen ALL
118 COMMENT "Generating doxygen documentation"
119 COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
120 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
121 VERBATIM
122 )
123 endif () 125 endif ()
124 126
125 add_subdirectory(cpp) 127 add_subdirectory(cpp)