| 1 |
From cbdb1c23400858e86983a2c845f9847201fdc09d Mon Sep 17 00:00:00 2001 |
| 2 |
From: Ewoud Kohl van Wijngaarden <[email protected]> |
| 3 |
Date: Tue, 6 Jan 2026 09:34:45 +0000 |
| 4 |
Subject: [PATCH] Support packaging using CPack (#18) |
| 5 |
|
| 6 |
--- |
| 7 |
CMakeLists.txt | 9 +++++++++ |
| 8 |
1 file changed, 9 insertions(+) |
| 9 |
|
| 10 |
diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 11 |
index fc5f95c..5700337 100644 |
| 12 |
--- a/CMakeLists.txt |
| 13 |
+++ b/CMakeLists.txt |
| 14 |
@@ -380,3 +380,12 @@ target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads dl) |
| 15 |
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}) |
| 16 |
|
| 17 |
configure_file(Version.cpp.in Version.cpp @ONLY) |
| 18 |
+ |
| 19 |
+set(CMAKE_INSTALL_BINDIR ".") |
| 20 |
+set(DATADIR ".") |
| 21 |
+ |
| 22 |
+install(TARGETS ${PROJECT_NAME}) |
| 23 |
+install(FILES railcontrol.conf.dist DESTINATION ${DATADIR}) |
| 24 |
+install(DIRECTORY html DESTINATION ${DATADIR}) |
| 25 |
+ |
| 26 |
+include(CPack) |
| 27 |
-- |
| 28 |
libgit2 1.9.2 |
| 29 |
|