-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
67 lines (67 loc) · 2.48 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
{
"version": 4,
"cmakeMinimumRequired": {
"major": 3,
"minor": 28,
"patch": 0
},
"configurePresets": [
{
"name": "dev",
"displayName": "Development Config",
"description": "Compile with strict debug and formatting flags enabled. Intended for local testing.",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX":"/usr/local/bin",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_C_FLAGS": "-finput-charset=UTF-8 -Wall -Werror -Wextra -Wshadow -Wunused-parameter -Wformat-security -fno-common -pedantic -lm -g -pg -rdynamic",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_MAKE_PROGRAM": "make"
}
},
{
"name": "dev-mingw",
"displayName": "Debug Config [Mingw Toolchain]",
"description": "Cross-compile with debug flags enabled using a mingw toolchain.",
"binaryDir": "${sourceDir}/build",
"toolchainFile": "${sourceDir}/toolchain/win64.cmake",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX":"/usr/local/bin",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_C_FLAGS": "-finput-charset=UTF-8 -Wall -Werror -Wextra -Wshadow -Wunused-parameter -Wformat-security -fno-common -pedantic -lm -g",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_MAKE_PROGRAM": "make"
}
},
{
"name": "release",
"displayName": "Release Config",
"description": "Compile with the highest level of optimization. Intended for releases.",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX":"/usr/local/bin",
"CMAKE_BUILD_TYPE":"Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "OFF",
"CMAKE_C_FLAGS": "-finput-charset=UTF-8 -s -O3",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_MAKE_PROGRAM": "make"
}
}
],
"buildPresets": [
{
"name": "dev",
"configurePreset": "dev"
},
{
"name": "dev-mingw",
"configurePreset": "dev-mingw"
},
{
"name": "release",
"configurePreset": "release"
}
]
}