summarylogtreecommitdiffstats
path: root/001_install_rule.patch
blob: b8e9af48f83a0b5c9c80c5683ff9b3c580071603 (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..9c2949c 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}doom" "${PROGRAM_PREFIX}heretic" "${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)