diff options
author | Johann Klähn <kljohann@gmail.com> | 2013-01-14 22:24:56 +0100 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2013-01-14 23:39:34 +0100 |
commit | b13f0c33c3c9633ef370633817e35bb35c399b42 (patch) | |
tree | aab0d55ad8fda60fdb74065b1e2688ff1f855d5f /doc/CMakeLists.txt | |
parent | 3af432d33002010a508daa02a013c76c9f9ead62 (diff) | |
download | fork-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.txt | 18 |
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) |