zephyr/tests/bluetooth/ctrl_user_ext/CMakeLists.txt
Jamie McCrae 0bad35de45 samples and tests: Use non-environmental zephyr base variable
This drops using the environmental part when referencing ZEPHYR_BASE
as the environment value does not have to be set and, in most cases,
is no longer set at all.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-03-03 10:49:10 +01:00

27 lines
720 B
CMake

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
include_directories("./src")
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(bluetooth_ctrl_user_ext)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/controller/)
if(CONFIG_SOC_COMPATIBLE_NRF)
zephyr_library_include_directories(
${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
)
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
zephyr_library_include_directories(
${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
${ZEPHYR_BASE}/bluetooth/hci/openisa
)
endif()
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})