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_connection_cte_req)
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/bt_conn_common.c
13		   ${CMAKE_CURRENT_SOURCE_DIR}/../common/src/radio_df_stub.c)
14
15target_sources(app PRIVATE ${common_sources} ${app_sources})
16target_include_directories(app PRIVATE
17			   ${CMAKE_CURRENT_SOURCE_DIR}/../common/include)
18
19zephyr_library_include_directories(
20    ${ZEPHYR_BASE}/subsys/bluetooth/
21    ${ZEPHYR_BASE}/subsys/bluetooth/controller/
22    ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw
23)
24
25if(CONFIG_SOC_COMPATIBLE_NRF)
26  zephyr_library_include_directories(
27    ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
28    ${ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
29  )
30elseif(CONFIG_SOC_OPENISA_RV32M1)
31  zephyr_library_include_directories(
32    ${ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
33    ${ZEPHYR_BASE}/bluetooth/hci/openisa
34  )
35endif()
36