|
@@ -187,13 +187,15 @@ add_dependencies(Hello YAML-CPP)
|
187
|
187
|
|
188
|
188
|
|
189
|
189
|
# add a target to generate API documentation with Doxygen
|
|
190
|
+# ALL make documentation build by default if possible
|
190
|
191
|
find_package(Doxygen)
|
191
|
192
|
if(DOXYGEN_FOUND)
|
192
|
193
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Documentation/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile @ONLY)
|
193
|
194
|
add_custom_target(doc
|
194
|
|
- ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile
|
195
|
|
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
196
|
|
- COMMENT "Generating API documentation with Doxygen" VERBATIM
|
|
195
|
+ ALL
|
|
196
|
+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile
|
|
197
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
198
|
+ COMMENT "Generating API documentation with Doxygen" VERBATIM
|
197
|
199
|
)
|
198
|
200
|
endif(DOXYGEN_FOUND)
|
199
|
201
|
|