forked from halide/Halide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
78 lines (78 loc) · 2.42 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
{
"version": 1,
"cmakeMinimumRequired": {
"major": 3,
"minor": 16,
"patch": 0
},
"configurePresets": [
{
"name": "gcc-debug",
"displayName": "GCC (Debug)",
"description": "Debug build using Ninja generator and GCC-compatible compiler",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_RELEASE": "-O2",
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "-O2 -g",
"CMAKE_CXX_FLAGS_MINSIZEREL": "-Os"
}
},
{
"name": "gcc-release",
"inherits": "gcc-debug",
"displayName": "GCC (Release)",
"description": "Release build using Ninja generator and GCC-compatible compiler",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "msvc-debug",
"displayName": "MSVC (Debug)",
"description": "Debug build using Ninja generator and MSVC with vcpkg dependencies.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "msvc-release",
"displayName": "MSVC (Release)",
"description": "Debug build using Ninja generator and MSVC with vcpkg dependencies.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "win32",
"displayName": "Win32 (Visual Studio)",
"description": "Visual Studio-based Win32 build with vcpkg dependencies.",
"generator": "Visual Studio 16 2019",
"architecture": "Win32",
"toolset": "host=x64",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "win64",
"displayName": "Win64 (Visual Studio)",
"description": "Visual Studio-based Win64 build with vcpkg dependencies.",
"generator": "Visual Studio 16 2019",
"architecture": "x64",
"toolset": "host=x64",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
}
]
}