23 lines
533 B
CMake
23 lines
533 B
CMake
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
if(DEFINED CUSTOM_BOILERPLATE)
|
|
include(${CUSTOM_BOILERPLATE})
|
|
return()
|
|
endif()
|
|
|
|
set(COMMON_PATH ${CMAKE_CURRENT_LIST_DIR}/common)
|
|
include(${COMMON_PATH}/common.cmake)
|
|
|
|
GET_DEVICE_CONFIG_FILES(${BOARD} boards)
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(SensorSoftwareTest_)
|
|
target_include_directories(app PRIVATE
|
|
common
|
|
${ZEPHYR_BASE}/../modules/hal/nordic/nrfx/hal
|
|
)
|
|
|
|
target_sources(app PRIVATE main.c)
|
|
|
|
# Set the build type to Debug
|
|
set(CMAKE_BUILD_TYPE Debug) |