X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=CMakeLists.txt;h=3595198d69a189f56d455a3e5f9c3ea9f87988e9;hp=14e02b27004fe4fb45b42f04035547d5a0d59702;hb=a03fea794af90cd97514f35f212691f8b5b3700d;hpb=8e527547a8df7264bbaba4644d93ac132473d321 diff --git a/CMakeLists.txt b/CMakeLists.txt index 14e02b2..3595198 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,8 +92,11 @@ add_subdirectory(packages) # Documentation + +option(DOCUMENTATION "Generate API documentation with Doxygen" ON) + find_package(Doxygen) -if(DOXYGEN_FOUND) +if(DOCUMENTATION AND DOXYGEN_FOUND) # Set variables set(PACKAGE libftdi) @@ -126,7 +129,10 @@ if(DOXYGEN_FOUND) add_custom_target(docs ALL DEPENDS ${CMAKE_BINARY_DIR}/doc/html/index.html) -endif(DOXYGEN_FOUND) + message(STATUS "Generating API documentation with Doxygen") +else(DOCUMENTATION AND DOXYGEN_FOUND) + message(STATUS "Not generating API documentation") +endif(DOCUMENTATION AND DOXYGEN_FOUND) # PkgConfig set(prefix ${CMAKE_INSTALL_PREFIX})