From bef286c033b18fc66f8db15d6e5065cc8c05b1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20G=C3=B6rner?= Date: Fri, 19 Jan 2024 12:13:26 +0100 Subject: [PATCH] fixup 24ae2d79 (#178) Actually install headers and do not redundantly add the include dir to the target. `INCLUDES DESTINATION` flags in `install(TARGETS` define additional paths that are added to the INTERFACE_INCLUDE_DIRECTORIES, they do not install files. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd561c21..1b8e2f98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,13 +98,15 @@ endif() # Add support for installation include(CMakePackageConfigHelpers) +# Install headers +install(DIRECTORY include/ruckig DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + # Install library install(TARGETS ruckig EXPORT ${PROJECT_NAME}-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) # Install CMake config files