diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-09 07:58:12 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-09 07:58:12 +0200 |
commit | 4d321cbe18ee462a1fa2d44d2c3b7d0ce79fb5d6 (patch) | |
tree | 99a1cc077ca2fa9e00709fadaf0df35f32a5dc1a | |
parent | 4f40c3056a68151f52422d54572fa72c0f19151d (diff) | |
download | fork-ledger-4d321cbe18ee462a1fa2d44d2c3b7d0ce79fb5d6.tar.gz fork-ledger-4d321cbe18ee462a1fa2d44d2c3b7d0ce79fb5d6.tar.bz2 fork-ledger-4d321cbe18ee462a1fa2d44d2c3b7d0ce79fb5d6.zip |
doc: Fix generating api documentation
by fixing path to source
-rw-r--r-- | doc/CMakeLists.txt | 9 | ||||
-rw-r--r-- | doc/Doxyfile.in | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 08132224..1a510c1a 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -23,14 +23,15 @@ if (USE_DOXYGEN) message(FATAL_ERROR "Could not find doxygen. Reference documentation cannot be built.") endif() - configure_file(Doxyfile.in Doxyfile @ONLY) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile @ONLY) # see INPUT/FILE_PATTERNS in Doxyfile.in - file(GLOB doxygen_input_files ${CMAKE_SOURCE_DIR}/src/*.h) + file(GLOB doxygen_input_files ${CMAKE_CURRENT_SOURCE_DIR}/../src/*.h) add_custom_command(OUTPUT html/index.html - COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile - DEPENDS Doxyfile ${doxygen_input_files} + COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile ${doxygen_input_files} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building doxygen documentation") add_custom_target(doc.doxygen DEPENDS html/index.html) else() diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index a6f91136..6da4217c 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -140,7 +140,7 @@ FULL_PATH_NAMES = NO # relative paths, which will be relative from the directory where doxygen is # started. -STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@/src/ +STRIP_FROM_PATH = @CMAKE_CURRENT_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 @@ -680,7 +680,7 @@ WARN_LOGFILE = # with spaces. # please update dependencies in CMakeList.txt if you change this -INPUT = @PROJECT_SOURCE_DIR@/src +INPUT = @CMAKE_CURRENT_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 |