summaryrefslogtreecommitdiffstats
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-15 14:55:48 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-15 14:55:48 +0100
commitb9b9563fd74d0d15b1cde7faf13ff7c9285a60b6 (patch)
tree8ae07d14392d243a04568d58f40a087f13984d47 /doc/CMakeLists.txt
parent1bc477228811f1ccab921c95c9a6729e2c89d257 (diff)
downloadlibuca-b9b9563fd74d0d15b1cde7faf13ff7c9285a60b6.tar.gz
libuca-b9b9563fd74d0d15b1cde7faf13ff7c9285a60b6.tar.bz2
libuca-b9b9563fd74d0d15b1cde7faf13ff7c9285a60b6.tar.xz
libuca-b9b9563fd74d0d15b1cde7faf13ff7c9285a60b6.zip
Add extensive documentation
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt15
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)