From 80c3bdc23c1874494196bbf8a481a859712ece88 Mon Sep 17 00:00:00 2001 From: kimci86 Date: Thu, 14 Nov 2019 20:45:09 +0100 Subject: [PATCH] Fix CMake scripts to install and find doxygen's generated SFML.tag file --- cmake/SFMLConfig.cmake.in | 2 +- doc/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/SFMLConfig.cmake.in b/cmake/SFMLConfig.cmake.in index ce819534..86527b73 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 175fa733..d67f9062 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)