summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2013-01-14 14:44:54 -0800
committerJohn Wiegley <johnw@newartisans.com>2013-01-14 14:44:54 -0800
commitd4df36a5983ee5ee8ee56c14f3decdcad6faf8af (patch)
treeaab0d55ad8fda60fdb74065b1e2688ff1f855d5f /doc/CMakeLists.txt
parent3af432d33002010a508daa02a013c76c9f9ead62 (diff)
parentb13f0c33c3c9633ef370633817e35bb35c399b42 (diff)
downloadfork-ledger-d4df36a5983ee5ee8ee56c14f3decdcad6faf8af.tar.gz
fork-ledger-d4df36a5983ee5ee8ee56c14f3decdcad6faf8af.tar.bz2
fork-ledger-d4df36a5983ee5ee8ee56c14f3decdcad6faf8af.zip
Merge pull request #121 from kljohann/cmake.doxy
repair doxygen support
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r--doc/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index a817c151..54c58737 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,3 +1,21 @@
+if (USE_DOXYGEN)
+ find_package(Doxygen)
+ if(NOT DOXYGEN_FOUND)
+ message(FATAL_ERROR "Could not find doxygen. Reference documentation cannot be built.")
+ endif()
+
+ configure_file(Doxyfile.in Doxyfile @ONLY)
+ add_custom_target(doxygen ALL
+ COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
+ SOURCES Doxyfile)
+endif(USE_DOXYGEN)
+
+########################################################################
+
+if(NOT BUILD_DOCS)
+ return()
+endif()
+
set(info_files ledger.texi ledger3.texi)
find_program(MAKEINFO makeinfo)