diff --git a/cmake/SFMLConfig.cmake.in b/cmake/SFMLConfig.cmake.in index ce819534a..86527b730 100644 --- a/cmake/SFMLConfig.cmake.in +++ b/cmake/SFMLConfig.cmake.in @@ -77,7 +77,7 @@ set(FIND_SFML_PATHS /opt) 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}) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 175fa733b..d67f90623 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -52,6 +52,9 @@ add_custom_target(doc ALL WORKING_DIRECTORY ${DOXYGEN_INPUT_DIR}) # setup install rules +install(FILES ${DOXYGEN_OUTPUT_DIR}/SFML.tag + DESTINATION ${CMAKE_INSTALL_DOCDIR} + COMPONENT doc) install(DIRECTORY ${DOXYGEN_OUTPUT_DIR}/html DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT doc)