Skip to content

Commit d17d52d

Browse files
cmake: install default config files
1 parent 59c6352 commit d17d52d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ if (ENABLE_EXPORT)
6565
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
6666
endif (ENABLE_EXPORT)
6767

68+
########################################################################
69+
# Install Dirs
70+
########################################################################
71+
72+
set(DATA_DIR share/${CMAKE_PROJECT_NAME})
73+
6874
########################################################################
6975
# Compiler specific setup
7076
########################################################################
@@ -285,6 +291,7 @@ add_custom_target(all_srsran_headers SOURCES ${ALL_HEADER_FILES})
285291
########################################################################
286292

287293
add_subdirectory(apps)
294+
add_subdirectory(configs)
288295
add_subdirectory(docs)
289296
add_subdirectory(external)
290297
add_subdirectory(lib)

configs/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# Copyright 2021-2023 Software Radio Systems Limited
3+
#
4+
# By using this file, you agree to the terms and conditions set
5+
# forth in the LICENSE file which can be found at the top level of
6+
# the distribution.
7+
#
8+
9+
########################################################################
10+
# Default configuration files
11+
########################################################################
12+
file(GLOB CONFIG_FILES
13+
"*.yml"
14+
)
15+
install(FILES ${CONFIG_FILES} DESTINATION ${DATA_DIR})

0 commit comments

Comments
 (0)