1#
2# Copyright (c) 2021 Nordic Semiconductor ASA
3#
4# SPDX-License-Identifier: Apache-2.0
5
6cmake_minimum_required(VERSION 3.20.0)
7find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
8project(bluetooth_df_connectionless_cte_tx)
9
10FILE(GLOB app_sources src/*.c)
11SET(common_sources ${CMAKE_CURRENT_SOURCE_DIR}/../common/src/bt_common.c
12		   ${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c)
13
14target_sources(app PRIVATE ${common_sources} ${app_sources})
15target_include_directories(app PRIVATE
16			   ${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
17
18zephyr_library_include_directories(
19    ${ZEPHYR_BASE}/subsys/bluetooth/
20    ${ZEPHYR_BASE}/subsys/bluetooth/controller/
21    ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
22)
23
24if(CONFIG_SOC_COMPATIBLE_NRF)
25  zephyr_library_include_directories(
26    ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
27    ${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
28  )
29elseif(CONFIG_SOC_OPENISA_RV32M1)
30  zephyr_library_include_directories(
31    ${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
32    ${ZEPHYR_BASE}/bluetooth/hci/openisa
33  )
34endif()
35