summaryrefslogtreecommitdiff
path: root/doc
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
parent3af432d33002010a508daa02a013c76c9f9ead62 (diff)
downloadfork-ledger-b13f0c33c3c9633ef370633817e35bb35c399b42.tar.gz
fork-ledger-b13f0c33c3c9633ef370633817e35bb35c399b42.tar.bz2
fork-ledger-b13f0c33c3c9633ef370633817e35bb35c399b42.zip
repair doxygen support
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt18
-rw-r--r--doc/Doxyfile.in (renamed from doc/Doxyfile)6
2 files changed, 21 insertions, 3 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)
diff --git a/doc/Doxyfile b/doc/Doxyfile.in
index d59d3f82..734eb8df 100644
--- a/doc/Doxyfile
+++ b/doc/Doxyfile.in
@@ -38,7 +38,7 @@ PROJECT_NUMBER = 3.0
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY = %builddir%/doc
+OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output
@@ -124,7 +124,7 @@ FULL_PATH_NAMES = NO
# If left blank the directory from which doxygen is run is used as the
# path to strip.
-STRIP_FROM_PATH = %srcdir%/src/
+STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@/src/
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
# the path mentioned in the documentation of a class, which tells
@@ -564,7 +564,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT = src
+INPUT = @PROJECT_SOURCE_DIR@/src
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is