mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Introduce CMakePresests.json which is a simple way to perform incremental build using cmake New configure resets were added: - default: Configure compilation with default options - tests: Same as above but ENABLE_TESTS and SANITIZE_ADDRESS is ON New build presets were added: - 5gdefault: Build the software for NR rfsimulator test - default: same as 5gdefault - 4gdefault: Build the software for LTE rfsimulator test - tests: build all unit tests To configure using configuration preset: `cmake --preset <preset_name>` To build using a build preset: `cmake --build --preset <preset_name>`
65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
|
"version": 3,
|
|
"configurePresets": [
|
|
{
|
|
"name": "default",
|
|
"displayName": "Default Config",
|
|
"description": "Default build using Ninja generator",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/cmake_targets/ran_build/build",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
},
|
|
{
|
|
"name": "tests",
|
|
"displayName": "Default unit test config",
|
|
"inherits": "default",
|
|
"binaryDir": "${sourceDir}/cmake_targets/ran_build/build_test",
|
|
"cacheVariables": {
|
|
"ENABLE_TESTS": "ON",
|
|
"SANITIZE_ADDRESS": "ON",
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "5gdefault",
|
|
"configurePreset": "default",
|
|
"targets": [
|
|
"nr-uesoftmodem",
|
|
"nr-softmodem",
|
|
"rfsimulator",
|
|
"dfts",
|
|
"ldpc",
|
|
"params_libconfig",
|
|
"params_yaml"
|
|
]
|
|
},
|
|
{
|
|
"name": "default",
|
|
"inherits": "5gdefault"
|
|
},
|
|
{
|
|
"name": "4gdefault",
|
|
"configurePreset": "default",
|
|
"targets": [
|
|
"lte-softmodem",
|
|
"lte-uesoftmodem",
|
|
"dfts",
|
|
"coding",
|
|
"rfsimulator",
|
|
"params_libconfig"
|
|
]
|
|
},
|
|
{
|
|
"name": "tests",
|
|
"configurePreset": "tests",
|
|
"targets": [
|
|
"tests"
|
|
]
|
|
}
|
|
]
|
|
}
|