Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
44496147
Commit
44496147
authored
Oct 11, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/cmake-presets' into integration_2024_w41
parents
cab28f0f
b69b4dc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
0 deletions
+89
-0
.gitignore
.gitignore
+1
-0
CMakePresets.json
CMakePresets.json
+64
-0
doc/BUILD.md
doc/BUILD.md
+24
-0
No files found.
.gitignore
View file @
44496147
...
...
@@ -25,3 +25,4 @@ tags
nfapi_nr_interface_scf
*.log
*.out
CMakeUserPresets.json
CMakePresets.json
0 → 100644
View file @
44496147
{
"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"
]
}
]
}
doc/BUILD.md
View file @
44496147
...
...
@@ -217,6 +217,30 @@ cmake-gui ../../..
```
You can of course use all standard cmake/ninja/make commands in this directory.
## cmake presets
CMake presets are common project configure options. See https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html
Configure presets:
-
`default`
: Configure compilation with default options
-
`tests`
: Same as above but ENABLE_TESTS and SANITIZE_ADDRESS is ON
Build presets:
-
`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>
# Cross Compile
If you want to use cross-compiler on x86 platform for aarch64 version, please refer the
[
cross-compile.md
](
./cross-compile.md
)
for more information.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment