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 /doc/CMakeLists.txt | |
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
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 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() |