-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (22 loc) · 861 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (22 loc) · 861 Bytes
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
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1)
if(USE_DEV_BOARD)
set(CONF_FILE prj.conf;boards/xiaomi_bt_sensor_dev.conf)
set(DTC_OVERLAY_FILE boards/xiaomi_bt_sensor_dev.overlay)
endif()
list(APPEND ZEPHYR_EXTRA_MODULES
${CMAKE_CURRENT_SOURCE_DIR}/drivers/BU9795
)
list(APPEND SYSCALL_INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}/drivers/BU9795/zephyr
)
# Because our out of tree driver has it's own bindings, we need to include it in the DTS_ROOT
list(APPEND DTS_ROOT
${CMAKE_CURRENT_SOURCE_DIR}/drivers/BU9795/zephyr)
# Must define custom board before including boilerplate
set(BOARD_ROOT ${CMAKE_CURRENT_LIST_DIR})
set(BOARD xiaomi_bt_sensor)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(onoff-app)
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})