aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-07 12:30:19 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-03-07 12:30:19 +0900
commit5c03f8150bc48bb202521e7dc61c8250ddcf09c2 (patch)
tree656d48b7fc5d7914b44247b4d6f675dee65f8e16
parent9d40be0b5748c561593cdf86d88cdbd33e2562ad (diff)
Add option which outputs doxygen document
Change-Id: Idcfd95d152d3cfc876f962cfe66ef760d66c130f Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
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)