diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index de535cf..e70429f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,8 @@ find_library(HAVE_LIBM m) pkg_check_modules(SNDFILE sndfile) pkg_check_modules(SAMPLERATE samplerate) +find_program(DOXYGEN NAMES doxygen) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/configtemplate.h ${CMAKE_CURRENT_BINARY_DIR}/src/config.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libresample.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libresample.pc) @@ -50,3 +52,9 @@ if(SAMPLERATE_FOUND) endif(SAMPLERATE_FOUND) install(FILES libresample.pc DESTINATION ${LIBDIR}/pkgconfig) + +if(DOXYGEN) + add_custom_command(OUTPUT docs/html/index.html COMMAND ${DOXYGEN} docs/Doxyfile DEPENDS include/libresample.h) + add_custom_target(docs ALL DEPENDS docs/html/index.html) +endif(DOXYGEN) + |