2018-12-10 23:45:53 +01:00
|
|
|
find_package(Doxygen)
|
2019-03-14 19:24:17 +01:00
|
|
|
|
2018-12-10 23:45:53 +01:00
|
|
|
if (DOXYGEN_FOUND)
|
2019-11-14 19:32:54 +01:00
|
|
|
add_custom_target(documentation DEPENDS doxygen doxygen-pdf)
|
|
|
|
|
|
|
|
add_custom_target(doxygen
|
2018-12-10 23:45:53 +01:00
|
|
|
COMMAND ./build-doxygen.sh "${PROJECT_BINARY_DIR}"
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
COMMENT "Generating documentation with Doxygen")
|
2019-11-14 19:32:54 +01:00
|
|
|
|
|
|
|
add_custom_target(
|
|
|
|
doxygen-pdf
|
|
|
|
COMMAND make
|
|
|
|
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/latex"
|
|
|
|
DEPENDS doxygen
|
|
|
|
)
|
2018-12-10 23:45:53 +01:00
|
|
|
else (DOXYGEN_FOUND)
|
2019-11-14 19:36:59 +01:00
|
|
|
message("Doxygen needs to be installed to generate the doxygen documentation")
|
2018-12-10 23:45:53 +01:00
|
|
|
endif (DOXYGEN_FOUND)
|