summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index eba2e95b..e567dee2 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -11,7 +11,9 @@ if(MSVC)
else()
set_property(SOURCE "${res}" APPEND PROPERTY COMPILE_OPTIONS "-w")
endif()
-add_executable(${self} "${sources}" "${res}")
+add_library(${self}-lib STATIC "${sources}")
+add_executable(${self} "${res}")
+target_link_libraries(${self} ${self}-lib)
set_property(TARGET ${self} PROPERTY OUTPUT_NAME "${PROJECT_NAME}")
install(TARGETS ${self} RUNTIME DESTINATION bin)