-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
executable file
·33 lines (26 loc) · 1.16 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
31
32
33
cmake_minimum_required(VERSION 3.6)
# Adjust these parameters for your hardware platform
# must be set as cache strings to ensure they are not overwritten in mesh SDK
set(IC "nRF52832" CACHE STRING "IC")
set(PLATFORM "nrf52832_xxAA" CACHE STRING "Platform")
set(SOFTDEVICE_TYPE "s132" CACHE STRING "SoftDevice type")
set(SOFTDEVICE_VERSION "7.0.1" CACHE STRING "SoftDevice version")
# enable to output verbose info
set(CMAKE_VERBOSE_MAKEFILE off)
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
set(VERSION_BUGFIX 0)
set(VERSION_SUFFIX "")
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUGFIX}${VERSION_SUFFIX}" CACHE STRING "" FORCE)
set(CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR} CACHE STRING "" FORCE)
include("${CMAKE_SOURCE_DIR}/nRF5-cmake-scripts/nRF5-cmake.cmake")
# project() must be called after including nRF5-cmake.cmake but before calling nRF5_setup
# to ensure variables are set correctly
project(ExampleProject
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUGFIX}
LANGUAGES NONE)
message(STATUS "Configuring CMake for nRF5 SDK for ${PROJECT_NAME} ${VERSION_STRING}")
nRF5_setup()
if(NOT TARGET download)
add_subdirectory("src")
endif()