add doc dependency on klib

This is somewhat of a pain, because it requires that the docs are
built every time. It is, however, the only way I could figure out
to get the docs as a requirement for installation.
This commit is contained in:
Kyle Isom 2023-10-10 19:39:18 -07:00
parent 6317c2dd36
commit 7cb39680c1
2 changed files with 6 additions and 5 deletions

View File

@ -7,7 +7,10 @@ set(DOXYGEN_GENERATE_LATEX YES)
#set(DOXYGEN_EXTRACT_ALL YES) #set(DOXYGEN_EXTRACT_ALL YES)
doxygen_add_docs(klib_docs doxygen_add_docs(klib_docs
${HEADER_FILES} ${SOURCE_FILES}) ${HEADER_FILES} ${SOURCE_FILES}
# USE_STAMP_FILE) USE_STAMP_FILE)
add_dependencies(klib klib_docs)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/klib)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man DESTINATION share)
endif () endif ()

View File

@ -93,8 +93,6 @@ install(TARGETS phonebook RUNTIME DESTINATION bin)
install(FILES ${HEADER_FILES} DESTINATION include/klib) install(FILES ${HEADER_FILES} DESTINATION include/klib)
install(FILES klibConfig.cmake DESTINATION share/klib/cmake) install(FILES klibConfig.cmake DESTINATION share/klib/cmake)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/klib.pc DESTINATION lib/pkgconfig) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/klib.pc DESTINATION lib/pkgconfig)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/klib)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man DESTINATION share)
include(CMakePack.txt) include(CMakePack.txt)
include(CMakeDocs.txt) include(CMakeDocs.txt)