-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
CMakeLists.txt
38 lines (32 loc) · 1.04 KB
/
CMakeLists.txt
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
#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
# Point to NCS root directory.
set(NRF_DIR ${CMAKE_CURRENT_LIST_DIR} CACHE PATH "NCS root directory")
# We need to cache the build type so that it is not out of sync when CONF_FILE
# is cached.
set(CONF_FILE_BUILD_TYPE ${CONF_FILE_BUILD_TYPE} CACHE INTERNAL "The build type")
foreach(runner_ext BIN HEX ELF)
zephyr_get(NCS_RUNNER_${runner_ext} SYSBUILD)
if(DEFINED NCS_RUNNER_${runner_ext})
string(TOLOWER "${runner_ext}" type)
set_target_properties(runners_yaml_props_target PROPERTIES
"${type}_file" "${NCS_RUNNER_${runner_ext}}"
)
endif()
endforeach()
include(cmake/extensions.cmake)
include(cmake/version.cmake)
include(cmake/version_app.cmake)
include(cmake/multi_image.cmake)
include(cmake/sdp.cmake)
zephyr_include_directories(include)
add_subdirectory(ext)
add_subdirectory(lib)
add_subdirectory(samples)
add_subdirectory(subsys)
add_subdirectory(modules)
add_subdirectory(drivers)
add_subdirectory(tests)