From 34cc103e947c5fc461ba46b8d78c966fabff8c29 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 25 Jan 2018 13:20:28 -0800 Subject: [PATCH] Add doxygen target. --- libgnucash/doc/CMakeLists.txt | 7 ++++++- libgnucash/doc/doxygen.cfg.in | 9 ++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libgnucash/doc/CMakeLists.txt b/libgnucash/doc/CMakeLists.txt index 55a812299f..235f1eab5e 100644 --- a/libgnucash/doc/CMakeLists.txt +++ b/libgnucash/doc/CMakeLists.txt @@ -35,6 +35,11 @@ SET(doc_FILES user-prefs-howto.txt ) -SET_LOCAL_DIST(doc_DIST_local CMakeLists.txt ${doc_FILES}) +SET_LOCAL_DIST(doc_DIST_local CMakeLists.txt Makefile.am ${doc_FILES}) SET(doc_DIST ${doc_DIST_local} ${doc_design_DIST} ${doc_xml_DIST} PARENT_SCOPE) +find_program(DOXYGEN doxygen) +if (NOT ${DOXYGEN} STREQUAL "DOXYGEN-NOTFOUND") + configure_file(doxygen.cfg.in doxygen.cfg) + add_custom_target(doc ${DOXYGEN} doxygen.cfg) +endif() diff --git a/libgnucash/doc/doxygen.cfg.in b/libgnucash/doc/doxygen.cfg.in index 8663366001..36c39ba45b 100644 --- a/libgnucash/doc/doxygen.cfg.in +++ b/libgnucash/doc/doxygen.cfg.in @@ -652,8 +652,11 @@ WARN_LOGFILE = doxygen.log # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = @top_srcdir@/libgnucash \ - @top_srcdir@/libgnucash/engine/ +INPUT = ${CMAKE_SOURCE_DIR}/libgnucash \ + ${CMAKE_SOURCE_DIR}/gnucash \ + ${CMAKE_SOURCE_DIR}/common \ + ${CMAKE_SOURCE_DIR}/bindings \ + ${CMAKE_SOURCE_DIR}/libgnucash/engine/ # 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 @@ -1548,7 +1551,7 @@ SEARCH_INCLUDES = YES # contain include files that are not input files but should be processed by # the preprocessor. -INCLUDE_PATH = @top_srcdir@/libgnucash/engine/ +INCLUDE_PATH = ${CMAKE_SOURCE_DIR}/libgnucash/engine/ # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the