2019-11-17 14:47:04 -05:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
|
|
|
|
project(pinetime-app C CXX ASM)
|
|
|
|
|
|
|
|
# define some variables just for this example to determine file locations
|
|
|
|
set(NRF_PROJECT_NAME pinetime-app)
|
|
|
|
set(NRF_BOARD pca10040)
|
|
|
|
#set(NRF_SOFTDEVICE s132)
|
|
|
|
|
|
|
|
nRF5x_toolchainSetup()
|
|
|
|
nRF5x_setup()
|
|
|
|
|
|
|
|
#nRF5x_addAppScheduler()
|
|
|
|
#nRF5x_addAppFIFO()
|
|
|
|
#nRF5x_addAppTimer()
|
|
|
|
#nRF5x_addAppUART()
|
|
|
|
nRF5x_addAppButton()
|
|
|
|
nRF5x_addBSP(FALSE FALSE FALSE)
|
|
|
|
nRF5x_addAppGpiote()
|
|
|
|
#nRF5x_addBLEGATT()
|
|
|
|
#
|
|
|
|
#nRF5x_addBLEService(ble_lbs)
|
|
|
|
|
|
|
|
add_definitions(-DCONFIG_GPIO_AS_PINRESET)
|
|
|
|
add_definitions(-DDEBUG)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(.)
|
|
|
|
|
|
|
|
list(APPEND SOURCE_FILES
|
|
|
|
Logging/NrfLogger.cpp
|
|
|
|
BlinkApp/BlinkApp.cpp
|
|
|
|
main.cpp
|
2019-12-05 13:23:46 -05:00
|
|
|
drivers/st7789.cpp
|
|
|
|
drivers/spi_master_fast.cpp
|
2019-11-17 14:47:04 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
set(INCLUDE_FILES
|
|
|
|
Logging/Logger.h
|
|
|
|
Logging/NrfLogger.h
|
|
|
|
BlinkApp/BlinkApp.h
|
2019-12-05 13:23:46 -05:00
|
|
|
drivers/st7789.h
|
|
|
|
drivers/spi_master_fast.h
|
2019-11-17 14:47:04 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
nRF5x_addExecutable(pinetime-app "${SOURCE_FILES}")
|