summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2013-01-14 22:24:56 +0100
committerJohann Klähn <kljohann@gmail.com>2013-01-14 23:39:34 +0100
commitb13f0c33c3c9633ef370633817e35bb35c399b42 (patch)
treeaab0d55ad8fda60fdb74065b1e2688ff1f855d5f /doc/CMakeLists.txt
parent3af432d33002010a508daa02a013c76c9f9ead62 (diff)
downloadfork-ledger-b13f0c33c3c9633ef370633817e35bb35c399b42.tar.gz
fork-ledger-b13f0c33c3c9633ef370633817e35bb35c399b42.tar.bz2
fork-ledger-b13f0c33c3c9633ef370633817e35bb35c399b42.zip
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)