|
@@ -190,12 +190,15 @@ add_dependencies(Hello YAML-CPP)
|
190
|
190
|
# ALL make documentation build by default if possible
|
191
|
191
|
find_package(Doxygen)
|
192
|
192
|
if(DOXYGEN_FOUND)
|
|
193
|
+ option( LEMMA_BUILD_DOCUMENTATION "Build Doxygen man pages" OFF )
|
|
194
|
+ if (LEMMA_BUILD_DOCUMENTATION)
|
193
|
195
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Documentation/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile @ONLY)
|
194
|
|
- add_custom_target(doc
|
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
|
199
|
|
- )
|
|
196
|
+ add_custom_target(doc
|
|
197
|
+ ALL
|
|
198
|
+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile
|
|
199
|
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
200
|
+ COMMENT "Generating API documentation with Doxygen" VERBATIM
|
|
201
|
+ )
|
|
202
|
+ endif (LEMMA_BUILD_DOCUMENTATION)
|
200
|
203
|
endif(DOXYGEN_FOUND)
|
201
|
204
|
|