More CMake cleanup
This commit is contained in:
parent
cadfeab385
commit
4ef83526c0
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue