Skip to content

Commit bc5608b

Browse files
iamsergiodfaure-kdab
authored andcommitted
Add CMakePresets.json
Decided not to clutter the file with Qt 5 variants. Whoever needs can add them, but IMHO the Qt5 CI coverage is enough to guarantee Qt5 works.
1 parent 0bc4126 commit bc5608b

File tree

3 files changed

+92
-1
lines changed

3 files changed

+92
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ configure.sh
6767
/unittests/enum_escape/enum_escape
6868
/unittests/literal_true_false/literal_true_false
6969
/unittests/msexchange_noservice_wsdl/msexchange_noservice_wsdl
70+
/build-*

CMakePresets.json

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"version": 5,
3+
"configurePresets": [
4+
{
5+
"name": "base",
6+
"generator": "Ninja",
7+
"binaryDir": "${sourceDir}/build-${presetName}",
8+
"hidden": true,
9+
"cacheVariables": {
10+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
11+
},
12+
"warnings": {
13+
"uninitialized": true
14+
},
15+
"errors": {
16+
"dev": true
17+
}
18+
},
19+
{
20+
"name": "static-base",
21+
"hidden": true,
22+
"generator": "Ninja",
23+
"cacheVariables": {
24+
"KDSoap_STATIC": "ON"
25+
},
26+
"inherits": ["base"]
27+
},
28+
{
29+
"name": "dev",
30+
"inherits": ["base"],
31+
"cacheVariables": {
32+
"CMAKE_BUILD_TYPE": "Debug",
33+
"KDSoap_STATIC": "OFF",
34+
"KDSoap_TESTS": "ON",
35+
"KDSoap_EXAMPLES": "ON",
36+
"KDSoap_QT6": "ON"
37+
}
38+
},
39+
{
40+
"name": "dev-asan",
41+
"inherits": ["dev"],
42+
"cacheVariables": {
43+
"ECM_ENABLE_SANITIZERS": "'address;undefined'"
44+
}
45+
},
46+
{
47+
"name": "dev-static",
48+
"inherits": ["dev"],
49+
"cacheVariables": {
50+
"KDSoap_STATIC": "ON"
51+
}
52+
},
53+
{
54+
"name": "clazy",
55+
"inherits": "dev",
56+
"cacheVariables": {
57+
"KDSoap_EXAMPLES": "OFF",
58+
"KDSoap_TESTS": "OFF"
59+
},
60+
"environment": {
61+
"CXX": "clazy",
62+
"CCACHE_DISABLE": "ON"
63+
}
64+
},
65+
{
66+
"name": "release",
67+
"inherits": "base",
68+
"cacheVariables": {
69+
"CMAKE_BUILD_TYPE": "Release"
70+
}
71+
},
72+
{
73+
"name": "release-static",
74+
"inherits": ["release"],
75+
"cacheVariables": {
76+
"KDSoap_STATIC": "ON"
77+
}
78+
}
79+
],
80+
"buildPresets": [
81+
{
82+
"name": "clazy",
83+
"configurePreset": "clazy",
84+
"environment": {
85+
"CLAZY_CHECKS": "level2,detaching-member,heap-allocated-small-trivial-type,isempty-vs-count,qstring-varargs,qvariant-template-instantiation,raw-environment-function,reserve-candidates,signal-with-return-value,thread-with-slots,no-ctor-missing-parent-argument,no-missing-typeinfo,no-skipped-base-method",
86+
"CCACHE_DISABLE": "ON"
87+
}
88+
}
89+
]
90+
}

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SPDX-License-Identifier = "MIT"
2626

2727
#misc config files
2828
[[annotations]]
29-
path = [".pre-commit-config.yaml", ".codespellrc", ".krazy", ".cmake-format.py", ".clang-format", ".clang-tidy", ".clazy", ".codedocs", ".gitignore", ".gitmodules", ".mdlrc", ".mdlrc.rb", ".pep8", ".pylintrc", "docs/api/Doxyfile.cmake", "distro/**", "REUSE.toml"]
29+
path = ["CMakePresets.json", ".pre-commit-config.yaml", ".codespellrc", ".krazy", ".cmake-format.py", ".clang-format", ".clang-tidy", ".clazy", ".codedocs", ".gitignore", ".gitmodules", ".mdlrc", ".mdlrc.rb", ".pep8", ".pylintrc", "docs/api/Doxyfile.cmake", "distro/**", "REUSE.toml"]
3030
precedence = "aggregate"
3131
SPDX-FileCopyrightText = "Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>"
3232
SPDX-License-Identifier = "BSD-3-Clause"

0 commit comments

Comments
 (0)