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")
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)