Add doxygen target.

This commit is contained in:
John Ralls 2018-01-25 13:20:28 -08:00
parent 709787dafa
commit 34cc103e94
2 changed files with 12 additions and 4 deletions

View File

@ -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()

View File

@ -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