From 8329c1baf99ece0e93feda1331e089bc0aced52e Mon Sep 17 00:00:00 2001 From: christian mueller Date: Wed, 6 Jul 2011 15:41:15 +0200 Subject: adding feature in the compile script: by adding document to the cmaker call , the documentation will be created. By default the documentation will not be created --- PluginRoutingInterfaceDbus/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'PluginRoutingInterfaceDbus/CMakeLists.txt') diff --git a/PluginRoutingInterfaceDbus/CMakeLists.txt b/PluginRoutingInterfaceDbus/CMakeLists.txt index ed15031..54f8e86 100644 --- a/PluginRoutingInterfaceDbus/CMakeLists.txt +++ b/PluginRoutingInterfaceDbus/CMakeLists.txt @@ -9,6 +9,7 @@ set(EXECUTABLE_OUTPUT_PATH ../../bin/) set(LIBRARY_OUTPUT_PATH ../plugins) set(DBUS_FOLDER ${CMAKE_SOURCE_DIR}/../dbusInterfaces) set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/DBusPlugin) +set(DOCUMENT $ENV{gendoc}) cmake_policy(SET CMP0015 NEW) @@ -77,10 +78,12 @@ add_custom_command( #add a target to generate API documentation with Doxygen find_package(Doxygen) if(DOXYGEN_FOUND) +if(DOCUMENT) configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE) add_custom_target (Docs ALL COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH} SOURCES ${PROJECT_BINARY_DIR}/Doxyfile) +endif(DOCUMENT) endif(DOXYGEN_FOUND) -- cgit v1.2.1