diff options
author | Thomas White <taw@physics.org> | 2019-05-07 16:08:59 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-05-07 16:25:44 +0200 |
commit | 66cb1bd2251f9562d7bd1ebfeb8030d2402e59e2 (patch) | |
tree | bee2d78d6b9c241e9129cf5ef4b575a2343aa887 /libcrystfel/CMakeLists.txt | |
parent | a40f81d1a4fba8f60f318a98cd9f2b98aa3daa64 (diff) |
Add CMake stuff for Doxygen
Diffstat (limited to 'libcrystfel/CMakeLists.txt')
-rw-r--r-- | libcrystfel/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt index d1d46b81..faf6c8c4 100644 --- a/libcrystfel/CMakeLists.txt +++ b/libcrystfel/CMakeLists.txt @@ -8,6 +8,7 @@ find_package(FDIP) find_package(ZLIB REQUIRED) find_package(FLEX REQUIRED) find_package(BISON REQUIRED) +find_package(Doxygen) pkg_search_module(FFTW fftw3) set(HAVE_CURSES ${CURSES_FOUND}) @@ -113,6 +114,12 @@ set(LIBCRYSTFEL_HEADERS src/rational.h ) +set(DOXYGEN_SHOW_INCLUDE_FILES NO) +set(DOXYGEN_WARN_IF_UNDOCUMENTED NO) +set(DOXYGEN_PREDEFINED HAVE_FFTW) +doxygen_add_docs(api-docs ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/doc + ${PROJECT_SOURCE_DIR}/doc) + add_library(${PROJECT_NAME} SHARED ${LIBCRYSTFEL_SOURCES} ${LIBCRYSTFEL_FFTW_SOURCES} |