forked from OpenAssetIO/OpenAssetIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
113 lines (113 loc) · 2.84 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"version": 3,
"configurePresets": [
{
"name": "dev",
"displayName": "TDD Development",
"description": "Enables linting and tests (useful for day-to-day development)",
"inherits": [
"enable-linters-cpp",
"enable-tests"
]
},
{
"name": "lint",
"displayName": "Linting",
"description": "Enables all targets with linting and tests",
"inherits": [
"enable-linters-cpp",
"enable-targets-all",
"enable-tests"
],
"cacheVariables": {
"CMAKE_VERBOSE_MAKEFILE": "ON"
}
},
{
"name": "sanitize",
"displayName": "Testing with sanitizers",
"description": "Enables all targets with tests and sanitizers",
"inherits": [
"enable-sanitizers",
"enable-targets-all",
"enable-tests"
]
},
{
"name": "test",
"displayName": "Testing",
"description": "Runs all test cases without linting or sanitizers",
"inherits": [
"enable-targets-all",
"enable-tests"
],
"cacheVariables": {
"CMAKE_VERBOSE_MAKEFILE": "ON"
}
},
{
"name": "test-custom-python-env",
"displayName": "Testing w/o Python venv",
"description": "Runs all test cases in the external Python environment",
"inherits": [
"enable-targets-all",
"enable-tests",
"disable-test-venv"
],
"cacheVariables": {
"CMAKE_VERBOSE_MAKEFILE": "ON"
}
},
{
"name": "setuptools",
"displayName": "Python setuptools setup.py",
"description": "Settings for building Python extension module consumed by setuptools",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BUILD_SHARED_LIBS": "OFF",
"OPENASSETIO_PYTHON_SITEDIR": "."
}
},
{
"name": "enable-tests",
"hidden": true,
"cacheVariables": {
"OPENASSETIO_ENABLE_TESTS": "ON"
}
},
{
"name": "enable-linters-cpp",
"hidden": true,
"cacheVariables": {
"OPENASSETIO_ENABLE_CLANG_FORMAT": "ON",
"OPENASSETIO_ENABLE_CLANG_TIDY": "ON",
"OPENASSETIO_ENABLE_CPPLINT": "ON",
"OPENASSETIO_WARNINGS_AS_ERRORS": "ON"
}
},
{
"name": "enable-sanitizers",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"OPENASSETIO_ENABLE_SANITIZER_ADDRESS": "ON",
"OPENASSETIO_ENABLE_SANITIZER_UNDEFINED_BEHAVIOR": "ON"
}
},
{
"name": "enable-targets-all",
"hidden": true,
"cacheVariables": {
"OPENASSETIO_ENABLE_PYTHON": "ON",
"OPENASSETIO_ENABLE_C": "ON"
}
},
{
"name": "disable-test-venv",
"hidden": true,
"cacheVariables": {
"OPENASSETIO_ENABLE_PYTHON_TEST_VENV": "OFF"
}
}
]
}