-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathCMakePresets.json
More file actions
82 lines (82 loc) · 3.07 KB
/
Copy pathCMakePresets.json
File metadata and controls
82 lines (82 loc) · 3.07 KB
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
{
"version": 3,
"cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 },
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja"
},
{
"name": "linux-debug",
"inherits": "base",
"displayName": "Linux debug",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" },
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" }
},
{
"name": "linux-release",
"inherits": "base",
"displayName": "Linux release with debug info",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" },
"cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" }
},
{
"name": "linux-asan",
"inherits": "base",
"displayName": "Linux debug with ASAN",
"description": "DEVELOPMENT_VERSION also defines DEVELOPMENT and requires an ASAN-capable compiler.",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" },
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"DEVELOPMENT_VERSION": "ON"
}
},
{
"name": "windows-base",
"hidden": true,
"inherits": "base",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"cacheVariables": {
"QT_DEV_PATH": "C:/Qt/6.8.0/msvc2022_64",
"GDAL_DEV_PATH": "C:/GDAL",
"PROJ_DEV_PATH": "C:/PROJ",
"ROUTINO_DEV_PATH": "C:/routino",
"JPEG_DEV_PATH": "C:/JPEG"
}
},
{
"name": "windows-msvc",
"inherits": "windows-base",
"displayName": "Windows MSVC 2022 x64",
"description": "Edit the paths to match the local dependency tree, or override them in CMakeUserPresets.json. Inherit windows-base instead of this preset to keep the paths but pick another generator - architecture is set here because Ninja rejects it.",
"generator": "Visual Studio 17 2022",
"architecture": "x64"
},
{
"name": "macos",
"displayName": "macOS release",
"description": "Reads the same environment MacOSX/config.sh exports. Source it before configuring.",
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Unix Makefiles",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin" },
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_MACOSX_RPATH": "ON",
"CMAKE_OSX_DEPLOYMENT_TARGET": "$env{OSX_DEPLOYMENT_TARGET}",
"QT_DEV_PATH": "$env{QT_DEV_PATH}",
"GDAL_DEV_PATH": "$env{GDAL}",
"PROJ_DEV_PATH": "$env{PROJ_DEV_PATH}",
"ROUTINO_DEV_PATH": "$env{ROUTINO_DEV_PATH}"
}
}
],
"buildPresets": [
{ "name": "linux-debug", "configurePreset": "linux-debug" },
{ "name": "linux-release", "configurePreset": "linux-release" },
{ "name": "linux-asan", "configurePreset": "linux-asan" },
{ "name": "windows-msvc", "configurePreset": "windows-msvc", "configuration": "Release" },
{ "name": "macos", "configurePreset": "macos" }
]
}