aboutsummaryrefslogtreecommitdiffstats
path: root/CMakePresets.json
blob: ed600149ae48f6049f73b9ee7f6785aa2061170f (plain)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
  "version": 3,
  "cmakeMinimumRequired": {
    "major": 3,
    "minor": 21,
    "patch": 0
  },
  "configurePresets": [
    {
      "name": "debug",
      "displayName": "Debug (cc, C++20, java)",
      "binaryDir": "${sourceDir}/build/preset-debug",
      "cacheVariables": {
        "CMAKE_CXX_STANDARD": "20",
        "CMAKE_BUILD_TYPE": "Debug",
        "CMAKE_INSTALL_PREFIX": "dist/preset-debug",
        "JAU_CMAKE_FIX_INSTALL_PREFIX": "ON",
        "TRY_JAVA": "ON",
        "USE_LIBCURL": "OFF",
        "USE_LIBUNWIND": "ON",
        "BUILDEXAMPLES": "ON",
        "BUILD_TESTING": "ON",
        "BUILD_TRIAL": "ON",
        "TEST_WITH_SUDO": "OFF"
      }
    },
    {
      "name": "debug-clang",
      "inherits": "debug",
      "displayName": "Debug (clang, clang-tidy, C++20, java)",
      "binaryDir": "${sourceDir}/build/preset-debug-clang",
      "cacheVariables": {
        "CMAKE_C_COMPILER": "clang",
        "CMAKE_CXX_COMPILER": "clang++",
        "CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/preset-debug-clang"
      }
    },
    {
      "name": "debug-gcc",
      "inherits": "debug",
      "displayName": "Debug (gcc, C++20, java)",
      "binaryDir": "${sourceDir}/build/preset-debug-gcc",
      "cacheVariables": {
        "CMAKE_C_COMPILER": "gcc",
        "CMAKE_CXX_COMPILER": "g++"
      }
    },
    {
      "name": "release",
      "inherits": "debug",
      "displayName": "Release (cc, C++20, java)",
      "binaryDir": "${sourceDir}/build/preset-release",
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Release",
        "CMAKE_INSTALL_PREFIX": "dist/preset-release",
        "JAU_CMAKE_FIX_INSTALL_PREFIX": "ON",
        "USE_LIBUNWIND": "OFF"
      }
    },
    {
      "name": "release-clang",
      "inherits": "release",
      "displayName": "Release (clang, clang-tidy, C++20, java)",
      "binaryDir": "${sourceDir}/build/preset-release-clang",
      "cacheVariables": {
        "CMAKE_C_COMPILER": "clang",
        "CMAKE_CXX_COMPILER": "clang++",
        "CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/preset-release-clang"
      }
    },
    {
      "name": "release-gcc",
      "inherits": "release",
      "displayName": "Release (gcc, C++20, java)",
      "binaryDir": "${sourceDir}/build/preset-release-gcc",
      "cacheVariables": {
        "CMAKE_C_COMPILER": "gcc",
        "CMAKE_CXX_COMPILER": "g++"
      }
    }
  ],
  "buildPresets": [
    {
      "name": "debug",
      "configurePreset": "debug"
    },
    {
      "name": "debug-gcc",
      "configurePreset": "debug-gcc"
    },
    {
      "name": "debug-clang",
      "configurePreset": "debug-clang"
    },
    {
      "name": "release",
      "configurePreset": "release"
    },
    {
      "name": "release-gcc",
      "configurePreset": "release-gcc"
    },
    {
      "name": "release-clang",
      "configurePreset": "release-clang"
    }
  ],
  "testPresets": [
    {
      "name": "debug",
      "configurePreset": "debug",
      "output": {"outputOnFailure": true},
      "execution": {"noTestsAction": "error", "stopOnFailure": true}
    },
    {
      "name": "debug-gcc",
      "configurePreset": "debug-gcc",
      "output": {"outputOnFailure": true},
      "execution": {"noTestsAction": "error", "stopOnFailure": true}
    },
    {
      "name": "debug-clang",
      "configurePreset": "debug-clang",
      "output": {"outputOnFailure": true},
      "execution": {"noTestsAction": "error", "stopOnFailure": true}
    },
    {
      "name": "release",
      "configurePreset": "release",
      "output": {"outputOnFailure": true},
      "execution": {"noTestsAction": "error", "stopOnFailure": true}
    },
    {
      "name": "release-gcc",
      "configurePreset": "release-gcc",
      "output": {"outputOnFailure": true},
      "execution": {"noTestsAction": "error", "stopOnFailure": true}
    },
    {
      "name": "release-clang",
      "configurePreset": "release-clang",
      "output": {"outputOnFailure": true},
      "execution": {"noTestsAction": "error", "stopOnFailure": true}
    }
  ]
}