forked from Lora-net/LoRaMac-node
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
85 lines (85 loc) · 2.77 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "common_configs",
"displayName": "common_configs",
"description": "Default Configurations for LoRaMAC node",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"APPLICATION": "LoRaMac",
"SUB_PROJECT": "periodic-uplink-lpp",
"CLASSB_ENABLED": "ON",
"ACTIVE_REGION": "LORAMAC_REGION_EU868",
"MODULATION": "LORA",
"BOARD": "B-L072Z-LRWAN1",
"MBED_RADIO_SHIELD": "SX1261MBXBAS",
"SECURE_ELEMENT": "SOFT_SE",
"SECURE_ELEMENT_PRE_PROVISIONED": "ON",
"REGION_EU868": "ON",
"REGION_US915": "ON",
"REGION_CN779": "OFF",
"REGION_EU433": "OFF",
"REGION_AU915": "ON",
"REGION_CN470": "ON",
"REGION_AS923": "ON",
"REGION_KR920": "ON",
"REGION_IN865": "ON",
"REGION_RU864": "ON",
"REGION_AS923_DEFAULT_CHANNEL_PLAN": "CHANNEL_PLAN_GROUP_AS923_1_JP"
}
},
{
"name": "unittesting_configs",
"description": "Configurations for unittesting",
"displayName": "unittesting_configs",
"binaryDir": "${sourceDir}/build/tests",
"inherits": [
"common_configs"
],
"cacheVariables": {
"UNIT_TESTING": true
}
},
{
"name": "on_target_configs",
"description": "Configurations for building for target: STM32L072",
"displayName": "on_target_configs",
"binaryDir": "${sourceDir}/build",
"inherits": [
"common_configs"
],
"cacheVariables": {
"UNIT_TESTING": false,
"CMAKE_TOOLCHAIN_FILE": "cmake/toolchain-arm-none-eabi.cmake"
}
}
],
"buildPresets": [
{
"name": "unittest_build",
"description": "Build the unittest",
"displayName": "unittest_build",
"configurePreset": "unittesting_configs"
},
{
"name": "target_build",
"description": "Build for the STM32l0 target",
"displayName": "target_build",
"configurePreset": "on_target_configs"
}
],
"testPresets": [
{
"name": "unittest",
"description": "Unittest with CppUTest",
"displayName": "unittest",
"configurePreset": "unittesting_configs"
}
]
}