diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-02 10:36:11 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2011-12-02 10:36:11 +0100 |
commit | 7098be23b924d1b96143aaaf42f7bc02cb60fe19 (patch) | |
tree | 9074e4bb746a42c495aaa700cd7151c4416356c1 /doc/CMakeLists.txt | |
parent | 57f2f8976b37ba6f6ec188c77e38cd854d594233 (diff) | |
download | ufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.tar.gz ufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.tar.bz2 ufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.tar.xz ufodecode-7098be23b924d1b96143aaaf42f7bc02cb60fe19.zip |
Add documentation and split CMakeLists
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..6f9f078 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 2.8) + +find_package(Doxygen) + +# --- Create Doxygen source documentation by typing `make doc` +if(DOXYGEN_FOUND) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) + + # add 'ALL after 'doc' to create documentation, whenever you type make + 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) |