blob: 86250b11a511c5ac968c59f0109205345a940586 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e0fadd7..25dca4d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -230,4 +230,10 @@ if(MSVC)
endif()
set_target_properties("${PROGRAM_PREFIX}setup" PROPERTIES
- INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
\ No newline at end of file
+ INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
+
+include(GNUInstallDirs)
+
+install(TARGETS "${PROGRAM_PREFIX}hexen" "${PROGRAM_PREFIX}setup" RUNTIME
+ DESTINATION $<IF:$<BOOL:${WIN32}>,.,${CMAKE_INSTALL_BINDIR}>
+ PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_WRITE WORLD_EXECUTE)
|