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:
parent
6317c2dd36
commit
7cb39680c1
|
@ -7,7 +7,10 @@ set(DOXYGEN_GENERATE_LATEX YES)
|
|||
#set(DOXYGEN_EXTRACT_ALL YES)
|
||||
|
||||
doxygen_add_docs(klib_docs
|
||||
${HEADER_FILES} ${SOURCE_FILES})
|
||||
# USE_STAMP_FILE)
|
||||
${HEADER_FILES} ${SOURCE_FILES}
|
||||
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 ()
|
|
@ -93,8 +93,6 @@ install(TARGETS phonebook RUNTIME DESTINATION bin)
|
|||
install(FILES ${HEADER_FILES} DESTINATION include/klib)
|
||||
install(FILES klibConfig.cmake DESTINATION share/klib/cmake)
|
||||
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(CMakeDocs.txt)
|
||||
|
|
Loading…
Reference in New Issue