cmake: use find_package to locate Zephyr

Using find_package to locate Zephyr.

Old behavior was to use $ENV{ZEPHYR_BASE} for inclusion of boiler plate
code.

Whenever an automatic run of CMake happend by the build system / IDE
then it was required that ZEPHYR_BASE was defined.
Using ZEPHYR_BASE only to locate the Zephyr package allows CMake to
cache the base variable and thus allowing subsequent invocation even
if ZEPHYR_BASE is not set in the environment.

It also removes the risk of strange build results if a user switchs
between different Zephyr based project folders and forgetting to reset
ZEPHYR_BASE before running ninja / make.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2020-02-12 15:00:46 +01:00 committed by Carles Cufí
commit 407b49b35c
491 changed files with 626 additions and 629 deletions

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(test_relocation) project(test_relocation)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(external_lib) project(external_lib)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -10,7 +10,7 @@ set(BOARD_ROOT ${CMAKE_CURRENT_LIST_DIR})
# this board. # this board.
set(BOARD nrf52840dk_nrf52840) set(BOARD nrf52840dk_nrf52840)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(out_of_tree_board) project(out_of_tree_board)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -13,7 +13,7 @@ cmake_minimum_required(VERSION 3.13.1)
# be able to find the module's syscalls. # be able to find the module's syscalls.
list(APPEND SYSCALL_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/hello_world_module/zephyr) list(APPEND SYSCALL_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/hello_world_module/zephyr)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(NONE) project(NONE)
target_sources(app PRIVATE target_sources(app PRIVATE

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(blink_led) project(blink_led)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(blinky) project(blinky)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(button) project(button)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(fade_led) project(fade_led)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(minimal) project(minimal)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(rgb_led) project(rgb_led)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(servo_motor) project(servo_motor)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(threads) project(threads)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(beacon) project(beacon)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,11 +1,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(central) project(central)
target_sources(app PRIVATE target_sources(app PRIVATE
src/main.c src/main.c
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,10 +1,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(central_hr) project(central_hr)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources}) target_sources(app PRIVATE ${app_sources})
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,11 +1,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(eddystone) project(eddystone)
target_sources(app PRIVATE target_sources(app PRIVATE
src/main.c src/main.c
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,10 +1,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(handsfree) project(handsfree)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources}) target_sources(app PRIVATE ${app_sources})
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(hci_pwr_ctrl) project(hci_pwr_ctrl)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(hci_rpmsg) project(hci_rpmsg)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,10 +1,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(hci_spi) project(hci_spi)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources}) target_sources(app PRIVATE ${app_sources})
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(hci_uart) project(hci_uart)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(hci_usb) project(hci_usb)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(ibeacon) project(ibeacon)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(ipsp) project(ipsp)
target_sources(app PRIVATE target_sources(app PRIVATE

View file

@ -7,7 +7,7 @@ if((BOARD STREQUAL nrf51_blenano) OR (BOARD STREQUAL nrf51_ble400))
set(CONF_FILE nrf51_qfaa.conf) set(CONF_FILE nrf51_qfaa.conf)
endif() endif()
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mesh) project(mesh)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -3,13 +3,13 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
set(QEMU_EXTRA_FLAGS -s) set(QEMU_EXTRA_FLAGS -s)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mesh_demo) project(mesh_demo)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)
target_sources_ifdef(CONFIG_BOARD_BBC_MICROBIT app PRIVATE src/microbit.c) target_sources_ifdef(CONFIG_BOARD_BBC_MICROBIT app PRIVATE src/microbit.c)
zephyr_include_directories_ifdef(CONFIG_BOARD_BBC_MICROBIT zephyr_include_directories_ifdef(CONFIG_BOARD_BBC_MICROBIT
$ENV{ZEPHYR_BASE}/boards/arm/bbc_microbit) ${ZEPHYR_BASE}/boards/arm/bbc_microbit)
if(NODE_ADDR) if(NODE_ADDR)
zephyr_compile_definitions(NODE_ADDR=${NODE_ADDR}) zephyr_compile_definitions(NODE_ADDR=${NODE_ADDR})

View file

@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
set(QEMU_EXTRA_FLAGS -s) set(QEMU_EXTRA_FLAGS -s)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mesh_provisioner) project(mesh_provisioner)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral) project(peripheral)
target_sources(app PRIVATE target_sources(app PRIVATE

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral_csc) project(peripheral_csc)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
@ -9,4 +9,4 @@ target_sources(app PRIVATE
${app_sources} ${app_sources}
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral_dis) project(peripheral_dis)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
@ -9,4 +9,4 @@ target_sources(app PRIVATE
${app_sources} ${app_sources}
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,11 +1,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral_esp) project(peripheral_esp)
target_sources(app PRIVATE target_sources(app PRIVATE
src/main.c src/main.c
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,11 +1,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral_hids) project(peripheral_hids)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE target_sources(app PRIVATE
${app_sources} ${app_sources}
) )

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral_hr) project(peripheral_hr)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
@ -10,4 +10,4 @@ target_sources(app PRIVATE
${app_sources} ${app_sources}
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral_ht) project(peripheral_ht)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,11 +1,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peripheral_sc_only) project(peripheral_sc_only)
target_sources(app PRIVATE target_sources(app PRIVATE
src/main.c src/main.c
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,10 +1,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(scan_adv) project(scan_adv)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources}) target_sources(app PRIVATE ${app_sources})
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(st_ble_sensor) project(st_ble_sensor)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
@ -9,4 +9,4 @@ target_sources(app PRIVATE
${app_sources} ${app_sources}
) )
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth) zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)

View file

@ -4,7 +4,7 @@
# #
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(NONE) project(NONE)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -4,7 +4,7 @@
# #
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(96b_argonkey) project(96b_argonkey)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(arc_secure_services) project(arc_secure_services)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(display) project(display)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(robot) project(robot)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,9 +2,9 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(pong) project(pong)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources}) target_sources(app PRIVATE ${app_sources})
zephyr_include_directories($ENV{ZEPHYR_BASE}/boards/arm/bbc_microbit) zephyr_include_directories(${ZEPHYR_BASE}/boards/arm/bbc_microbit)

View file

@ -2,9 +2,9 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(sound) project(sound)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources}) target_sources(app PRIVATE ${app_sources})
zephyr_include_directories($ENV{ZEPHYR_BASE}/boards/arm/bbc_microbit) zephyr_include_directories(${ZEPHYR_BASE}/boards/arm/bbc_microbit)

View file

@ -2,7 +2,7 @@
set(BOARD intel_s1000_crb) set(BOARD intel_s1000_crb)
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(NONE) project(NONE)
target_sources(app PRIVATE src/audio_driver.c) target_sources(app PRIVATE src/audio_driver.c)

View file

@ -2,7 +2,7 @@
set(BOARD intel_s1000_crb) set(BOARD intel_s1000_crb)
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(NONE) project(NONE)
target_sources(app PRIVATE src/dmic_sample.c) target_sources(app PRIVATE src/dmic_sample.c)

View file

@ -2,7 +2,7 @@
set(BOARD intel_s1000_crb) set(BOARD intel_s1000_crb)
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(NONE) project(NONE)
target_sources(app PRIVATE src/i2s_sample.c) target_sources(app PRIVATE src/i2s_sample.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mec15_brd_test) project(mec15_brd_test)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(battery) project(battery)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
set(QEMU_EXTRA_FLAGS -s) set(QEMU_EXTRA_FLAGS -s)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(onoff-app) project(onoff-app)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
set(QEMU_EXTRA_FLAGS -s) set(QEMU_EXTRA_FLAGS -s)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(onoff_level_lighting_vnd_app) project(onoff_level_lighting_vnd_app)
target_sources(app PRIVATE target_sources(app PRIVATE

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(nrfx_sample) project(nrfx_sample)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(nrf_system_off) project(nrf_system_off)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(ccm) project(ccm)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mesh_badge) project(mesh_badge)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -4,7 +4,7 @@
# #
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(sensortile_box) project(sensortile_box)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,8 +2,8 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(gpio_counter) project(gpio_counter)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)
zephyr_include_directories($ENV{ZEPHYR_BASE}/boards/x86/up_squared) zephyr_include_directories(${ZEPHYR_BASE}/boards/x86/up_squared)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(cpp_synchronization) project(cpp_synchronization)
target_sources(app PRIVATE src/main.cpp) target_sources(app PRIVATE src/main.cpp)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(cfb) project(cfb)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,8 +2,8 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
include($ENV{ZEPHYR_BASE}/cmake/cfb.cmake NO_POLICY_SCOPE) include(${ZEPHYR_BASE}/cmake/cfb.cmake NO_POLICY_SCOPE)
project(cfb_custom_font) project(cfb_custom_font)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(cfb) project(cfb)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(grove_display) project(grove_display)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(lvgl) project(lvgl)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(CAN) project(CAN)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(counter) project(counter)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(crypto) project(crypto)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(current_sensing) project(current_sensing)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(display) project(display)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(entropy) project(entropy)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(espi) project(espi)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(flash_shell) project(flash_shell)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(ht16k33) project(ht16k33)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(i2c_fujitsu_fram) project(i2c_fujitsu_fram)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(kscan) project(kscan)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(lcd_hd44780) project(lcd_hd44780)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(led_apa102) project(led_apa102)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(led_apa102c) project(led_apa102c)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(led_lp3943) project(led_lp3943)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(led_lp5562) project(led_lp5562)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(led_lpd8806) project(led_lpd8806)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(led_pca9633) project(led_pca9633)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(led_ws2812) project(led_ws2812)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(lora_receive) project(lora_receive)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(lora_send) project(lora_send)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(peci) project(peci)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(espi) project(espi)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(soc_flash_nrf) project(soc_flash_nrf)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(spi_flash) project(spi_flash)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(spi_fujitsu_fram) project(spi_fujitsu_fram)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(watchdog) project(watchdog)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(hello_world) project(hello_world)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mpu_test) project(mpu_test)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(NONE) project(NONE)
if(NOT EXISTS ${APPLICATION_SOURCE_DIR}/src/private_info/key.c) if(NOT EXISTS ${APPLICATION_SOURCE_DIR}/src/private_info/key.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(mqtt-azure) project(mqtt-azure)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(dhcpv4_client) project(dhcpv4_client)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(dns_resolve) project(dns_resolve)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

View file

@ -1,9 +1,9 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(eth_native_posix) project(eth_native_posix)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)
include($ENV{ZEPHYR_BASE}/samples/net/common/common.cmake) include(${ZEPHYR_BASE}/samples/net/common/common.cmake)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(gptp) project(gptp)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(gsm_modem) project(gsm_modem)
target_sources(app PRIVATE src/main.c) target_sources(app PRIVATE src/main.c)

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(ipv4_autoconf) project(ipv4_autoconf)
FILE(GLOB app_sources src/*.c) FILE(GLOB app_sources src/*.c)

Some files were not shown because too many files have changed in this diff Show more