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 --- AudioManagerDaemon/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'AudioManagerDaemon/CMakeLists.txt') diff --git a/AudioManagerDaemon/CMakeLists.txt b/AudioManagerDaemon/CMakeLists.txt index 67da2e0..aa1460e 100644 --- a/AudioManagerDaemon/CMakeLists.txt +++ b/AudioManagerDaemon/CMakeLists.txt @@ -20,6 +20,7 @@ set(EXECUTABLE_OUTPUT_PATH ../../bin/) set(DOC_OUTPUT_PATH ../../doc/) set(DBUS_FOLDER ${CMAKE_SOURCE_DIR}/../dbusInterfaces) set(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/../doc/AudioManager) +set(DOCUMENT $ENV{gendoc}) cmake_policy(SET CMP0015 NEW) @@ -122,10 +123,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