From 7f9528b366faffbc3efe550d0bdd799c2c53ee74 Mon Sep 17 00:00:00 2001 From: Uilian Ries Date: Tue, 10 Sep 2024 16:42:49 +0200 Subject: [PATCH] Install project headers Signed-off-by: Uilian Ries --- CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index da635a9..d96cf2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,4 +133,15 @@ if(MINISCRIPT_BUILD_TESTING) endif() endif() -install(TARGETS miniscript-cpp minicmd) +include(GNUInstallDirs) +install( + TARGETS miniscript-cpp minicmd + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} +) + +install( + FILES ${MINISCRIPT_HEADERS} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/MiniScript +)