summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-06-19 13:10:38 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-06-19 13:11:33 +0200
commitcc5d5d93a1019e1bfd3b327b896368a6dfd544d8 (patch)
tree55c7a4c6fd24398024315b69b5f9872acd45a6d1
parent0cf90f7214086928fb05232860f50042af484804 (diff)
downloadtmwa-cc5d5d93a1019e1bfd3b327b896368a6dfd544d8.tar.gz
tmwa-cc5d5d93a1019e1bfd3b327b896368a6dfd544d8.tar.bz2
tmwa-cc5d5d93a1019e1bfd3b327b896368a6dfd544d8.tar.xz
tmwa-cc5d5d93a1019e1bfd3b327b896368a6dfd544d8.zip
CMake: Added install rules for configuration and data
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72f0abd..79413ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -176,3 +176,10 @@ install(TARGETS tmwa-login tmwa-char tmwa-map tmwa-admin tmwa-shared
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
+
+# Install shared configuration and data
+install(FILES etc/tmwa/shared.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/tmwa)
+install(FILES share/tmwa/shared.data DESTINATION ${CMAKE_INSTALL_DATADIR}/tmwa)
+
+# Make sure there is a var directory
+install(DIRECTORY DESTINATION ${CMAKE_INSTALL_LOCALSTATEDIR}/tmwa)