-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
21 lines (15 loc) · 929 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 3.10)
ADD_DEFINITIONS(-DUNICODE)
ADD_DEFINITIONS(-D_UNICODE)
file(GLOB SOURCES "*.cpp")
project(cpp_set_performace)
add_executable(cpp_set_performace ${SOURCES} )
if(WIN32)
set_target_properties(cpp_set_performace PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
set_target_properties(cpp_set_performace PROPERTIES COMPILE_DEFINITIONS_DEBUG "_CONSOLE")
set_target_properties(cpp_set_performace PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:CONSOLE")
set_target_properties(cpp_set_performace PROPERTIES COMPILE_DEFINITIONS_RELWITHDEBINFO "_CONSOLE")
set_target_properties(cpp_set_performace PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:CONSOLE")
set_target_properties(cpp_set_performace PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:CONSOLE")
endif(WIN32)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT cpp_set_performace)