blob: 9f9c3528f0f0d705c4ac3658a4fd67ca87a405ff (
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..061bdb0 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}heretic" "${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)
|