-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
118 lines (118 loc) · 3.91 KB
/
Copy pathCMakePresets.json
File metadata and controls
118 lines (118 loc) · 3.91 KB
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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 30,
"patch": 0
},
"configurePresets": [
{
"name": "Base",
"hidden": true,
"generator": "Ninja",
"environment": {
"CXX": "clang++",
"CC": "clang",
"INFER_CC": "/usr/bin/clang-20"
},
"description": "Base CMake configurations",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_LINK_WHAT_YOU_USE": "OFF",
"CMAKE_CXX_INCLUDE_WHAT_YOU_USE": "include-what-you-use",
"BUILD_SHARED_LIBS": "OFF",
"FETCHCONTENT_QUIET": "OFF",
"LTO": "ON",
"CCACHE": "ON",
"CPACK_OUTPUT_FILE_PREFIX": "${sourceDir}/dist",
"CPACK_PACKAGING_INSTALL_PREFIX": "/opt/",
"LINK_JOB_POOLS": "2",
"CPACK_DEBIAN_COMPRESSION_TYPE": "zstd"
}
},
{
"name": "wasm",
"hidden": false,
"displayName": "Emscripten",
"binaryDir": "${sourceDir}/build_${presetName}-zerauth",
"environment": {
"CXX": "em++",
"CC": "emcc",
"AR": "emar",
"RANLIB": "emranlib"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LTO": "OFF",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist_${presetName}",
"FlatBuffers_DIR": "/usr/local/lib/cmake/flatbuffers"
},
"toolchainFile": "/opt/share/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake"
},
{
"name": "Debug",
"displayName": "Debug Build",
"hidden": false,
"inherits": [
"Base"
],
"description": "Sets up a Debug build that uses the default compiler and generator",
"binaryDir": "${sourceDir}/build_${presetName}-zerauth",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "${presetName}",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.external_${presetName}",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist_${presetName}",
"OPENSSL_ROOT_DIR": "/usr/local/openssl",
"OPENSSL_LIBRARIES": "/usr/local/openssl/lib/"
}
},
{
"name": "Release",
"displayName": "Release Build",
"hidden": false,
"inherits": [
"Base"
],
"description": "Sets up a Release build that uses the default compiler and generator",
"binaryDir": "${sourceDir}/build_${presetName}-zerauth",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "${presetName}",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.external_${presetName}",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist_${presetName}/",
"OPENSSL_ROOT_DIR": "/usr/local/openssl",
"OPENSSL_LIBRARIES": "/usr/local/openssl/lib/"
}
}
],
"buildPresets": [
{
"name": "Base",
"hidden": true,
"jobs": 8,
"targets": [
"zerauth"
]
},
{
"name": "wasm",
"hidden": false,
"configurePreset": "wasm",
"targets": [
"zerauth"
]
},
{
"name": "Release",
"hidden": false,
"inherits": "Base",
"configurePreset": "Release"
},
{
"name": "Debug",
"hidden": false,
"inherits": "Base",
"configurePreset": "Debug"
}
]
}