-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
53 lines (43 loc) · 970 Bytes
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Find Zephyr. This also loads Zephyr's build system.
cmake_minimum_required(VERSION 3.13.1)
list(APPEND BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
set(BOARD core840)
set(b0_OVERLAY_CONFIG
${CMAKE_CURRENT_SOURCE_DIR}/b0.conf
)
set(mcuboot_OVERLAY_CONFIG
overlay-minimal-external-crypto.conf
)
set(mcuboot_CONF_FILE
# Need to define this var instead of using
# overlay, because of custom key logic in
# NCS mcuboot.cmake
${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf
)
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(rgbwatch)
set(CMAKE_BUILD_TYPE Release)
set(APP_SRC
src/main.c
src/rgb_led.c
src/disp.c
src/clock.c
src/accel.c
src/screen.c
src/pinmux.c
src/board.c
src/state.c
src/stopwatch.c
src/countdown.c
src/battery.c
src/motor.c
src/ble.c
src/cts.c
src/calendar.c
src/alarm.c
)
set(APP_INCLUDE
include
)
target_sources(app PRIVATE ${APP_SRC})
target_include_directories(app PRIVATE ${APP_INCLUDE})