Control optional doxygen dependency
This commit is contained in:
parent
4e4b6e67f4
commit
2c297ea15d
@ -93,6 +93,7 @@ install(FILES ${CMAKE_BINARY_DIR}/configured_files/include/bayesnet/config.h DES
|
|||||||
# Documentation
|
# Documentation
|
||||||
# -------------
|
# -------------
|
||||||
find_package(Doxygen)
|
find_package(Doxygen)
|
||||||
|
if (Doxygen_FOUND)
|
||||||
set(DOC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs)
|
set(DOC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs)
|
||||||
set(doxyfile_in ${DOC_DIR}/Doxyfile.in)
|
set(doxyfile_in ${DOC_DIR}/Doxyfile.in)
|
||||||
set(doxyfile ${DOC_DIR}/Doxyfile)
|
set(doxyfile ${DOC_DIR}/Doxyfile)
|
||||||
@ -100,3 +101,6 @@ configure_file(${doxyfile_in} ${doxyfile} @ONLY)
|
|||||||
doxygen_add_docs(doxygen
|
doxygen_add_docs(doxygen
|
||||||
WORKING_DIRECTORY ${DOC_DIR}
|
WORKING_DIRECTORY ${DOC_DIR}
|
||||||
CONFIG_FILE ${doxyfile})
|
CONFIG_FILE ${doxyfile})
|
||||||
|
else (Doxygen_FOUND)
|
||||||
|
MESSAGE("* Doxygen not found")
|
||||||
|
endif (Doxygen_FOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user