aboutsummaryrefslogtreecommitdiff
path: root/CMakePresets.json
blob: e14eda2406d42fd3a23271c1ad6dbd2d1ad6cd58 (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
{
  "version": 6,
  "configurePresets": [
    {
      "name": "release",
      "displayName": "Release",
      "description": "Default release build configuration.",
      "generator": "Ninja",
      "binaryDir": "${sourceDir}/build/release"
    },
    {
      "inherits": "release",
      "name": "release-vcpkg",
      "displayName": "Release (vcpkg)",
      "description": "Release build with packages from vcpkg.",
      "cacheVariables": {
        "USE_VCPKG": {
          "type": "BOOL",
          "value": "ON"
        }
      }
    },
    {
      "name": "release-mac-x86_64",
      "inherits": "release-vcpkg",
      "displayName": "macOS release (x86_64)",
      "binaryDir": "${sourceDir}/build/release-mac-x86_64",
      "cacheVariables": { "CMAKE_OSX_ARCHITECTURES": "x86_64" }
    },
    {
      "name": "release-mac-arm64",
      "inherits": "release-vcpkg",
      "displayName": "macOS release (arm64)",
      "binaryDir": "${sourceDir}/build/release-mac-arm64",
      "cacheVariables": { "CMAKE_OSX_ARCHITECTURES": "arm64" }
    }
  ],
  "buildPresets": [
    {
      "name": "release",
      "configurePreset": "release"
    },
    {
      "name": "release-vcpkg",
      "configurePreset": "release-vcpkg"
    },
    {
      "name": "release-mac-x86_64",
      "configurePreset": "release-mac-x86_64"
    },
    {
      "name": "release-mac-arm64",
      "configurePreset": "release-mac-arm64"
    }
  ],
  "workflowPresets": [
    {
      "name": "release",
      "displayName": "Release",
      "steps": [
        { "type": "configure", "name": "release" },
        { "type": "build", "name": "release" }
      ]
    },
    {
      "name": "release-vcpkg",
      "displayName": "Release (vcpkg)",
      "steps": [
        { "type": "configure", "name": "release-vcpkg" },
        { "type": "build", "name": "release-vcpkg" }
      ]
    },
    {
      "name": "release-mac-x86_64",
      "steps": [
        { "type": "configure", "name": "release-mac-x86_64" },
        { "type": "build", "name": "release-mac-x86_64" }
      ]
    },
    {
      "name": "release-mac-arm64",
      "steps": [
        { "type": "configure", "name": "release-mac-arm64" },
        { "type": "build", "name": "release-mac-arm64" }
      ]
    }
  ]
}