diff options
| author | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-29 17:36:27 +0100 |
|---|---|---|
| committer | Reiner Herrmann <reiner@reiner-h.de> | 2011-01-29 17:36:27 +0100 |
| commit | 9e7d99dfbbe41e4b97f8d8728fe44cdcc7a0ad28 (patch) | |
| tree | 71e774e31e83f5206f8b7b46e67a7dd01475f4e4 /CMakeLists.txt | |
| parent | 0c85158f6e149728ad8d7c164c5839856bd655f9 (diff) | |
cmake: added doc target which invokes doxygen
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3808ec5..dc0f022 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,17 @@ set(CMAKE_C_FLAGS "-Wall -pedantic -g -std=c99 -D_POSIX_SOURCE") set(CURSES_NEED_NCURSES true) find_package(Curses) +find_package(Doxygen) +if(DOXYGEN_FOUND) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) + add_custom_target(doc + ${DOXYGEN_EXECUTABLE} + ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Generating API documentation with Doxygen" VERBATIM + ) +endif(DOXYGEN_FOUND) + # Set the directory where source files are located. set(OXEN_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src) @@ -29,3 +40,4 @@ target_link_libraries( oxen ${CURSES_LIBRARIES} ) + |
