Move doxygen target and related files to toplevel.

Note: this also means the target directory changes from
      libgnucash/docs/html
      to
      [toplevel]/doxygen/html
This commit is contained in:
Geert Janssens 2024-05-23 12:29:16 +02:00
parent c816d2b34f
commit 387b4988e5
5 changed files with 12 additions and 11 deletions

View File

@ -843,6 +843,13 @@ add_definitions (-DHAVE_CONFIG_H)
set (CONFIG_H ${CMAKE_CURRENT_BINARY_DIR}/common/config.h) set (CONFIG_H ${CMAKE_CURRENT_BINARY_DIR}/common/config.h)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/common/config.h.cmake.in ${CONFIG_H}) configure_file (${CMAKE_CURRENT_SOURCE_DIR}/common/config.h.cmake.in ${CONFIG_H})
# The doxygen developer documentation
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()
# The subdirectories # The subdirectories
add_subdirectory (borrowed) add_subdirectory (borrowed)
add_subdirectory (data) add_subdirectory (data)
@ -884,7 +891,10 @@ endif()
set(DIST_FILE "${PACKAGE_PREFIX}.tar") set(DIST_FILE "${PACKAGE_PREFIX}.tar")
set(toplvl_DIST_local ${gnucash_DOCS} set(toplvl_DIST_local ${gnucash_DOCS}
CMakeLists.txt README) doxygen.cfg.in
doxygen_main_page.c
CMakeLists.txt
README)
set_local_dist(toplvl_DIST ${toplvl_DIST_local}) set_local_dist(toplvl_DIST ${toplvl_DIST_local})

View File

@ -68,7 +68,7 @@ PROJECT_LOGO =
# entered, it will be relative to the location where doxygen was started. If # entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used. # left blank the current directory will be used.
OUTPUT_DIRECTORY = OUTPUT_DIRECTORY = doxygen
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096 # If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
# sub-directories (in 2 levels) under the output directory of each output format # sub-directories (in 2 levels) under the output directory of each output format

View File

@ -1,7 +1,5 @@
set(doc_FILES set(doc_FILES
constderv.html constderv.html
doxygen.cfg.in
doxygen_main_page.c
finderv.html finderv.html
finutil.html finutil.html
README README
@ -9,9 +7,3 @@ set(doc_FILES
set_local_dist(doc_DIST_local CMakeLists.txt ${doc_FILES}) set_local_dist(doc_DIST_local CMakeLists.txt ${doc_FILES})
set(doc_DIST ${doc_DIST_local} ${doc_design_DIST} PARENT_SCOPE) set(doc_DIST ${doc_DIST_local} ${doc_design_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

@ -621,7 +621,6 @@ libgnucash/core-utils/gnc-locale-utils.cpp
libgnucash/core-utils/gnc-path.c libgnucash/core-utils/gnc-path.c
libgnucash/core-utils/gnc-prefs.c libgnucash/core-utils/gnc-prefs.c
libgnucash/core-utils/gnc-version.c libgnucash/core-utils/gnc-version.c
libgnucash/doc/doxygen_main_page.c
libgnucash/engine/Account.cpp libgnucash/engine/Account.cpp
libgnucash/engine/cap-gains.cpp libgnucash/engine/cap-gains.cpp
libgnucash/engine/cashobjects.cpp libgnucash/engine/cashobjects.cpp