-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakePresets.json
79 lines (79 loc) · 2.5 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
{
"version": 3,
"cmakeMinimumRequired":{
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "common",
"hidden": true,
"displayName": "Common configuration",
"cacheVariables": {
"GLFW_BUILD_DOCS": "OFF",
"GLFW_BUILD_EXAMPLES": "OFF",
"GFW_BUILD_TESTS": "OFF",
"GLFW_BUILD_INSTALL": "OFF"
}
},
{
"name": "build",
"hidden": true,
"displayName": "Settings for builds",
"cacheVariables": {
"ATLAS_BUILD_GL_TEST": "OFF",
"ATLAS_BUILD_GUI_TEST": "OFF"
}
},
{
"name": "msvc",
"inherits": ["common", "build"],
"displayName": "MSVC",
"description": "Default build for MSVC",
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/W4 /WX /MP /EHsc -DNOMINMAX",
"CMAKE_CXX_FLAGS_DEBUG": "/ZI"
}
},
{
"name": "gcc",
"inherits": ["common", "build"],
"displayName": "GCC",
"description": "Default build for GCC",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror",
"CMAKE_CXX_FLAGS_DEBUG": "-g"
}
},
{
"name": "clang",
"inherits": ["common", "build"],
"displayName": "Clang",
"description": "Default build for Clang",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror -stdlib=libstdc++",
"CMAKE_CXX_FLAGS_DEBUG": "-g"
}
},
{
"name": "dev",
"inherits": "common",
"displayName": "Dev",
"description": "Settings for development",
"binaryDir": "${sourceDir}/build",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/W4 /WX /MP /EHsc -DNOMINMAX",
"CMAKE_CXX_FLAGS_DEBUG": "/ZI",
"BUILD_SHARED_LIBS": "OFF"
}
}
]
}