Build documentation optionally
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 08:36:19 +0000 (10:36 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 08:36:19 +0000 (10:36 +0200)
CMakeLists.txt

index c790769..ec8d488 100644 (file)
@@ -56,8 +56,9 @@ set(CPACK_SOURCE_IGNORE_FILES
 set(CPACK_SOURCE_PACKAGE_FILE_NAME     ${CPACK_PACKAGE_FILE_NAME})
 
 # documentation
+option(DOCUMENTATION "Generate API documentation with Doxygen" ON)
 find_package(Doxygen)
-if(DOXYGEN_FOUND)
+if(DOCUMENTATION AND DOXYGEN_FOUND)
    # Set variables
    set(PACKAGE libi2ncommon)
    set(top_srcdir ${CMAKE_SOURCE_DIR})