From 1172b215ced6ebde9fa48419eb50af78e6bb8681 Mon Sep 17 00:00:00 2001 From: v4hn Date: Wed, 17 Jan 2024 15:39:59 +0100 Subject: [PATCH] fixup 24ae2d79 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