From 4ef83526c0cff97069dd3a28778a03325e9fb32c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 14 Mar 2020 21:59:42 +0000 Subject: [PATCH] More CMake cleanup --- CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db59d387..b201debd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,8 @@ option(MSVC_LINK_STATIC_RUNTIME "Link the static MSVC runtime library" OFF) project(CSE2 LANGUAGES C CXX) -add_executable(CSE2 +add_executable(CSE2 WIN32 + "${ASSETS_DIRECTORY}/resources/CSE2.rc" "src/ArmsItem.cpp" "src/ArmsItem.h" "src/Back.cpp" @@ -198,12 +199,6 @@ endif() # Tweaks # ########## -# Make some tweaks if we're targetting Windows -#if(WIN32) - target_sources(CSE2 PRIVATE "${ASSETS_DIRECTORY}/resources/CSE2.rc") - set_target_properties(CSE2 PROPERTIES WIN32_EXECUTABLE YES) # Disable the console window -#endif() - # Make some tweaks if we're using MSVC if(MSVC) # Disable warnings that normally fire up on MSVC when using "unsafe" functions instead of using MSVC's "safe" _s functions