More CMake cleanup

This commit is contained in:
Clownacy 2020-03-14 21:59:42 +00:00
parent cadfeab385
commit 4ef83526c0

View file

@ -26,7 +26,8 @@ option(MSVC_LINK_STATIC_RUNTIME "Link the static MSVC runtime library" OFF)
project(CSE2 LANGUAGES C CXX) project(CSE2 LANGUAGES C CXX)
add_executable(CSE2 add_executable(CSE2 WIN32
"${ASSETS_DIRECTORY}/resources/CSE2.rc"
"src/ArmsItem.cpp" "src/ArmsItem.cpp"
"src/ArmsItem.h" "src/ArmsItem.h"
"src/Back.cpp" "src/Back.cpp"
@ -198,12 +199,6 @@ endif()
# Tweaks # # 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 # Make some tweaks if we're using MSVC
if(MSVC) if(MSVC)
# Disable warnings that normally fire up on MSVC when using "unsafe" functions instead of using MSVC's "safe" _s functions # Disable warnings that normally fire up on MSVC when using "unsafe" functions instead of using MSVC's "safe" _s functions