-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakePresets.json
96 lines (96 loc) · 2.75 KB
/
CMakePresets.json
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 30
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_FLAGS": "$env{COMMONLIBSSE_COMPILER} $env{COMMONLIBSSE_PLATFORM}",
"CMAKE_SHARED_LINKER_FLAGS": "$env{COMMONLIBSSE_LINKER}",
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL"
}
},
{
"name": "vcpkg",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md",
"VCPKG_HOST_TRIPLET": "x64-windows-static-md"
}
},
{
"name": "win32",
"hidden": true,
"environment": {
"COMMONLIBSSE_PLATFORM": "-DWIN32_LEAN_AND_MEAN -DNOMINMAX"
}
},
{
"name": "x64",
"hidden": true,
"architecture": {
"value": "x64",
"strategy": "external"
}
},
{
"name": "msvc",
"hidden": true,
"generator": "Ninja",
"cmakeExecutable": "C:/Program Files/CMake/bin/cmake.exe",
"environment": {
"COMMONLIBSSE_COMPILER": "/EHsc /fp:contract /fp:except- /cgthreads8 /MP /diagnostics:caret /sdl /W4 /Zc:__cplusplus /Zc:enumTypes /Zc:preprocessor /Zc:templateScope",
"COMMONLIBSSE_LINKER": "/CGTHREADS:8 /DEBUG:FULL"
},
"cacheVariables": {
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "/O2 /Ob3 /fp:fast /GR- /Gw /Qpar",
"CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO": "/LTCG:INCREMENTAL /OPT:REF,ICF=4"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-msvc-x64",
"enableMicrosoftCodeAnalysis": true
}
}
},
{
"name": "build-release-msvc",
"inherits": ["base", "vcpkg", "win32", "x64", "msvc"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
},
"displayName": "Release",
"description": "Optimized release build.",
"binaryDir": "${sourceDir}/build/release-msvc"
},
{
"name": "build-debug-msvc",
"inherits": ["base", "vcpkg", "win32", "x64", "msvc"],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"displayName": "Debug",
"description": "Debug build.",
"binaryDir": "${sourceDir}/build/debug-msvc"
}
],
"buildPresets": [
{
"name": "release-msvc",
"displayName": "1. Release (MSVC)",
"configurePreset": "build-release-msvc",
"description": "Optimized release build."
},
{
"name": "debug-msvc",
"displayName": "2. Debug (MSVC)",
"configurePreset": "build-debug-msvc",
"description": "Debug build."
}
]
}