X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=CMakeLists.txt;h=25f47546404eea57483608159d731d6aa6260baf;hp=f7504e54609331a8de2fcf8193d3c381f780243b;hb=HEAD;hpb=ccb4d3d32de308db958d30a88e7b614a84241c86 diff --git a/CMakeLists.txt b/CMakeLists.txt index f7504e5..74b3e4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # Project project(libt2n) -set(VERSION 0.7) +set(VERSION 0.8) set(PROTOCOL_VERSION 1) # protocol version used (integers, increase version if incompatible) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") @@ -31,8 +31,9 @@ include_directories(${XMLPP_INCLUDE_DIRS}) link_directories(${XMLPP_LIBRARY_DIRS}) # Documentation +option(DOCUMENTATION "Generate API documentation with Doxygen" ON) find_package(Doxygen) -if(DOXYGEN_FOUND) +if(DOXYGEN_FOUND AND DOCUMENTATION) # Find doxy config message(STATUS "Doxygen found.") set(DOXY_DIR "${CMAKE_SOURCE_DIR}/doc") @@ -61,9 +62,9 @@ if(DOXYGEN_FOUND) add_custom_target(docs ALL DEPENDS ${CMAKE_BINARY_DIR}/doc/html/index.html) message(STATUS "Generating API documentation with Doxygen.") -else(DOXYGEN_FOUND) +else(DOXYGEN_FOUND AND DOCUMENTATION) message(STATUS "Not generating API documentation.") -endif(DOXYGEN_FOUND) +endif(DOXYGEN_FOUND AND DOCUMENTATION) # Spec file configure_file(${CMAKE_SOURCE_DIR}/libt2n.spec.in ${CMAKE_SOURCE_DIR}/libt2n.spec @ONLY)