2020-01-18 20:52:33 +01:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
2019-11-17 20:47:04 +01:00
|
|
|
|
|
|
|
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
|
2019-12-05 21:19:47 +01:00
|
|
|
DisplayApp/DisplayApp.cpp
|
2020-01-18 18:17:52 +01:00
|
|
|
DisplayApp/Fonts/lcdfont70.c
|
|
|
|
DisplayApp/Fonts/lcdfont14.c
|
|
|
|
DisplayApp/Screens/Screen.cpp
|
|
|
|
DisplayApp/Screens/Clock.cpp
|
|
|
|
DisplayApp/Screens/Message.cpp
|
2019-11-17 20:47:04 +01:00
|
|
|
main.cpp
|
2019-12-07 17:11:50 +01:00
|
|
|
drivers/St7789.cpp
|
|
|
|
drivers/SpiMaster.cpp
|
|
|
|
Components/Gfx/Gfx.cpp
|
2019-12-23 19:57:45 +01:00
|
|
|
BLE/BleManager.c
|
2019-12-27 16:05:35 +01:00
|
|
|
Components/Battery/BatteryController.cpp
|
2019-12-27 17:05:49 +01:00
|
|
|
Components/Ble/BleController.cpp
|
2019-12-28 14:34:50 +01:00
|
|
|
Components/DateTime/DateTimeController.cpp
|
2020-01-03 16:32:31 +01:00
|
|
|
drivers/Cst816s.cpp
|
2020-01-05 11:09:07 +01:00
|
|
|
FreeRTOS/port.c
|
|
|
|
FreeRTOS/port_cmsis_systick.c
|
|
|
|
FreeRTOS/port_cmsis.c
|
2019-11-17 20:47:04 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(INCLUDE_FILES
|
|
|
|
Logging/Logger.h
|
|
|
|
Logging/NrfLogger.h
|
|
|
|
BlinkApp/BlinkApp.h
|
2019-12-05 21:19:47 +01:00
|
|
|
DisplayApp/DisplayApp.h
|
2020-01-18 18:17:52 +01:00
|
|
|
DisplayApp/Fonts/lcdfont70.h
|
|
|
|
DisplayApp/Fonts/lcdfont14.h
|
|
|
|
DisplayApp/Screens/Screen.h
|
|
|
|
DisplayApp/Screens/Clock.h
|
|
|
|
DisplayApp/Screens/Message.h
|
2019-12-07 17:11:50 +01:00
|
|
|
drivers/St7789.h
|
|
|
|
drivers/SpiMaster.h
|
|
|
|
Components/Gfx/Gfx.h
|
2019-12-23 19:57:45 +01:00
|
|
|
BLE/BleManager.h
|
2019-12-27 16:05:35 +01:00
|
|
|
Components/Battery/BatteryController.h
|
2019-12-27 17:05:49 +01:00
|
|
|
Components/Ble/BleController.h
|
2019-12-28 14:34:50 +01:00
|
|
|
Components/DateTime/DateTimeController.h
|
2020-01-03 16:32:31 +01:00
|
|
|
drivers/Cst816s.h
|
2020-01-05 11:09:07 +01:00
|
|
|
FreeRTOS/portmacro.h
|
|
|
|
FreeRTOS/portmacro_cmsis.h
|
2020-01-11 17:14:12 +01:00
|
|
|
libs/date/includes/date/tz.h
|
|
|
|
libs/date/includes/date/chrono_io.h
|
|
|
|
libs/date/includes/date/date.h
|
|
|
|
libs/date/includes/date/islamic.h
|
|
|
|
libs/date/includes/date/iso_week.h
|
|
|
|
libs/date/includes/date/julian.h
|
|
|
|
libs/date/includes/date/ptz.h
|
|
|
|
libs/date/includes/date/tz_private.h
|
2020-01-05 11:09:07 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
FreeRTOS/
|
2020-01-11 17:14:12 +01:00
|
|
|
libs/date/includes
|
2019-11-17 20:47:04 +01:00
|
|
|
)
|
|
|
|
|
2020-01-12 16:26:20 +01:00
|
|
|
link_directories(
|
|
|
|
../
|
|
|
|
)
|
|
|
|
|
2020-01-18 21:26:05 +01:00
|
|
|
nRF5x_addExecutable(pinetime-app "${SOURCE_FILES}")
|