-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
executable file
·30 lines (24 loc) · 1.04 KB
/
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
cmake_minimum_required(VERSION 3.6)
project(nrf52-ibeacon C ASM)
include("CMakeEnv.cmake")
include("CMake_nRF52DK.cmake")
nRF52_setup()
include_directories(
"${NRF5_SDK_PATH}/components/libraries/bsp"
"${NRF5_SDK_PATH}/components/libraries/fifo"
"${NRF5_SDK_PATH}/components/ble/ble_advertising"
"${NRF5_SDK_PATH}/components/libraries/button"
"${NRF5_SDK_PATH}/components/libraries/scheduler"
)
list(APPEND SDK_SOURCE_FILES
"${NRF5_SDK_PATH}/components/libraries/bsp/bsp.c"
"${NRF5_SDK_PATH}/components/libraries/timer/app_timer.c"
"${NRF5_SDK_PATH}/components/libraries/fifo/app_fifo.c"
"${NRF5_SDK_PATH}/components/ble/ble_advertising/ble_advertising.c"
"${NRF5_SDK_PATH}/components/libraries/button/app_button.c"
"${NRF5_SDK_PATH}/components/libraries/scheduler/app_scheduler.c"
"${NRF5_SDK_PATH}/components/softdevice/common/nrf_sdh.c"
)
include_directories(".")
list(APPEND SOURCE_FILES "main.c")
nRF52_addExecutable(${PROJECT_NAME} "${SOURCE_FILES}")