From 5c03f8150bc48bb202521e7dc61c8250ddcf09c2 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Wed, 7 Mar 2018 12:30:19 +0900 Subject: Add option which outputs doxygen document Change-Id: Idcfd95d152d3cfc876f962cfe66ef760d66c130f Signed-off-by: Kazumasa Mitsunari --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7be72e..a0fb4f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,9 @@ set(PROJECT_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}) set(PROJECT_LIBDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) set(PROJECT_BINDINGDIR ${binding_install_dir}) +option (OTUPUT_DOXYGEN_DOC + "output documentation" OFF ) + # get pkgconfig INCLUDE(FindPkgConfig) link_libraries(-Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined) @@ -35,3 +38,11 @@ add_definitions(-DDEBUGMODE) add_subdirectory(src) add_subdirectory(conf) + +if(OUTPUT_DOXGEN_DOC) + find_package(Doxygen) + configure_file(${CMAKE_SOURCE_DIR}/PluginRoutingAdapterALSA/doc/PluginRoutingAdapterALSA.doxyfile ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile) + add_custom_target (PluginRoutingAdapterALSADoku ALL + COMMAND cd ${CMAKE_SOURCE_DIR}/doc/api-ref + COMMAND ${DOXYGEN_EXECUTABLE} ${DOC_OUTPUT_PATH}/Doxyfile WORKING_DIRECTORY ${DOC_OUTPUT_PATH} ${CMAKE_SOURCE_DIR}/PluginRoutingAdapterALSA ${DOC_OUTPUT_PATH}/Doxyfile +endif(WITH_DOCUMENTATION) -- cgit 1.2.3-korg