diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e58e02..9bafa6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,6 +104,10 @@ if (WIN32) target_sources(${PROJECT_NAME} PRIVATE Icon.rc) target_compile_options(${PROJECT_NAME} PRIVATE /EHsc) target_link_options(${PROJECT_NAME} PRIVATE /STACK:0xffffff) + target_link_options(${PROJECT_NAME} PRIVATE + "$<$,$>:/SUBSYSTEM:WINDOWS>" + "$<$,$>>:-mwindows>" + ) else () target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -pedantic diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 0000000..ec980c3 --- /dev/null +++ b/CMakeSettings.json @@ -0,0 +1,26 @@ +{ + "configurations": [ + { + "name": "x64-Debug", + "generator": "Ninja", + "configurationType": "Debug", + "inheritEnvironments": [ + "msvc_x64_x64" + ], + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "-DCMAKE_BUILD_TYPE=\"Debug\"" + }, + { + "name": "x64-Release", + "generator": "Ninja", + "configurationType": "Release", + "inheritEnvironments": [ + "msvc_x64_x64" + ], + "buildRoot": "${projectDir}\\out\\build\\${name}", + "installRoot": "${projectDir}\\out\\install\\${name}", + "cmakeCommandArgs": "-DCMAKE_BUILD_TYPE=\"Release\"" + } + ] +} \ No newline at end of file