-
Notifications
You must be signed in to change notification settings - Fork 319
Expand file tree
/
Copy pathConfiguration.cmake
More file actions
31 lines (27 loc) · 969 Bytes
/
Configuration.cmake
File metadata and controls
31 lines (27 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#----------------------------------------------------------------------------------------------------------------------
# Common configuration for all baseline test apps
#----------------------------------------------------------------------------------------------------------------------
add_library(Configuration INTERFACE)
target_compile_definitions(Configuration
INTERFACE
UNICODE
_UNICODE
NOMINMAX
WIN32_LEAN_AND_MEAN
)
target_compile_features(Configuration
INTERFACE
cxx_std_20
)
target_compile_options(Configuration
INTERFACE
$<$<CXX_COMPILER_ID:MSVC>:/EHsc>
$<$<CXX_COMPILER_ID:MSVC>:/W3>
$<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>
$<$<CXX_COMPILER_ID:MSVC>:/Zc:preprocessor>
)
target_link_options(Configuration
INTERFACE
$<$<CXX_COMPILER_ID:MSVC>:$<$<NOT:$<CONFIG:Debug>>:/LTCG>>
$<$<CXX_COMPILER_ID:MSVC>:$<$<NOT:$<CONFIG:Debug>>:/INCREMENTAL:NO>>
)