From 899c8daf81882c9abaf66a5f48d33efc6e6c57d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Thu, 14 Mar 2019 19:24:17 +0100 Subject: [PATCH] Add documentation target, which at the moment is only an alias for the doxygen target --- CMakeLists.txt | 1 + doxygen/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d677cf..b8dceae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,3 +43,4 @@ SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/glade/resources.c PROPER target_link_libraries(${PROJECT_NAME} ${GLIB_LDFLAGS} ${GTK3_LDFLAGS} ${CAIRO_LDFLAGS} m version ${CMAKE_DL_LIBS}) install (TARGETS ${PROJECT_NAME} DESTINATION bin) +add_custom_target(documentation DEPENDS doxygen) diff --git a/doxygen/CMakeLists.txt b/doxygen/CMakeLists.txt index a478f82..65b4801 100644 --- a/doxygen/CMakeLists.txt +++ b/doxygen/CMakeLists.txt @@ -1,10 +1,10 @@ find_package(Doxygen) + if (DOXYGEN_FOUND) add_custom_target(doxygen COMMAND ./build-doxygen.sh "${PROJECT_BINARY_DIR}" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Generating documentation with Doxygen") - else (DOXYGEN_FOUND) message("Doxygen need to be installed to generate the doxygen documentation") endif (DOXYGEN_FOUND)