diff options
| author | JF <jf@codingfield.com> | 2019-11-17 19:47:04 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2019-11-17 19:47:04 (GMT) |
| commit | 2ea27e0cdac91cd4743d9f12496bb3f911d9efa9 (patch) | |
| tree | ae6488be1be14c2b83aff6e69a6e622088fb093a /CMakeLists.txt | |
Initial commit
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9e1d1a7 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.15) +project(pinetime C CXX ASM) + +set(NRF_TARGET "nrf52") + +if (NOT ARM_NONE_EABI_TOOLCHAIN_PATH) + message(FATAL_ERROR "The path to the toolchain (arm-non-eabi) must be specified on the command line (add -DARM_NONE_EABI_TOOLCHAIN_PATH=<path>") +endif () + +if (NOT NRF5_SDK_PATH) + message(FATAL_ERROR "The path to the NRF52 SDK must be specified on the command line (add -DNRF52_SDK_PATH=<path>") +endif () + +if (NOT NRFJPROG) + message(FATAL_ERROR "the path to the tool nrfjprog must be specified on the command line (add -DNRFJPROG=<path>") +endif () + +include("cmake-nRF5x/CMake_nRF5x.cmake") +add_subdirectory(src) |
