From e8814eca8c7da57ca1feb7a3918dd25b040cbc32 Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Wed, 20 Mar 2024 14:38:52 +0100 Subject: [PATCH] Add install target --- .gitignore | 1 + CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 3d8f68b..bff82ca 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ _deps *.root *.slcio build/* +install/* .vscode diff --git a/CMakeLists.txt b/CMakeLists.txt index 018cccc..7f148d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,5 +18,9 @@ limitations under the License. ]] project(CLDConfig) +include(GNUInstallDirs) + add_subdirectory(test) enable_testing() + +install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/CLDConfig/ DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME})