Fix CMake scripts to install and find doxygen's generated SFML.tag file

This commit is contained in:
kimci86 2019-11-14 20:45:09 +01:00 committed by Lukas Dürrenberger
parent 6a79ebf1b3
commit 80c3bdc23c
2 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,7 @@ set(FIND_SFML_PATHS
/opt) /opt)
find_path(SFML_DOC_DIR SFML.tag find_path(SFML_DOC_DIR SFML.tag
PATH_SUFFIXES SFML/doc share/SFML/doc PATH_SUFFIXES SFML/doc share/doc/SFML
PATHS ${FIND_SFML_PATHS}) PATHS ${FIND_SFML_PATHS})

View File

@ -52,6 +52,9 @@ add_custom_target(doc ALL
WORKING_DIRECTORY ${DOXYGEN_INPUT_DIR}) WORKING_DIRECTORY ${DOXYGEN_INPUT_DIR})
# setup install rules # setup install rules
install(FILES ${DOXYGEN_OUTPUT_DIR}/SFML.tag
DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT doc)
install(DIRECTORY ${DOXYGEN_OUTPUT_DIR}/html install(DIRECTORY ${DOXYGEN_OUTPUT_DIR}/html
DESTINATION ${CMAKE_INSTALL_DOCDIR} DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT doc) COMPONENT doc)