shithub: cstory

Download patch

ref: 4ef83526c0cff97069dd3a28778a03325e9fb32c
parent: cadfeab385214a8b233f1669b019e44dedf7e133
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Mar 14 17:59:42 EDT 2020

More CMake cleanup

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,8 @@
 
 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"
@@ -197,12 +198,6 @@
 ##########
 # 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)