2020-08-18 22:46:49 +02:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
|
|
project(test)
|
|
|
|
|
2021-06-22 16:14:13 +02:00
|
|
|
if(DEFINED NATIVE_POSIX)
|
|
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
|
|
exposure-notification
|
|
|
|
GIT_REPOSITORY https://github.com/prathje/exposure-notification
|
|
|
|
GIT_TAG origin/main
|
|
|
|
)
|
|
|
|
FetchContent_GetProperties(exposure-notification)
|
|
|
|
if (NOT exposure-notification_POPULATED)
|
|
|
|
FetchContent_Populate(exposure-notification)
|
|
|
|
endif ()
|
|
|
|
target_include_directories(app PUBLIC ${exposure-notification_SOURCE_DIR}/include)
|
|
|
|
|
2021-07-21 14:15:00 +02:00
|
|
|
FILE(GLOB app_sources ../src/*.c* ../src/ens/*.c* ${exposure-notification_SOURCE_DIR}/src/*.c*)
|
2021-06-22 16:14:13 +02:00
|
|
|
else()
|
|
|
|
FILE(GLOB app_sources ../src/*.c*)
|
|
|
|
endif()
|
2021-06-17 11:30:57 +02:00
|
|
|
|
2020-08-18 22:46:49 +02:00
|
|
|
target_sources(app PRIVATE ${app_sources})
|