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-blaming-the-tools.tar.gz
tmwa-blaming-the-tools.tar.bz2
tmwa-blaming-the-tools.tar.xz
tmwa-blaming-the-tools.zip
CMake: Added install rules for configuration and datablaming-the-tools
-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)