mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-04 02:51:56 +00:00
This provides a better error message when building with CMake and forgetting ZEPHYR_BASE or not registering Zephyr in the CMake package registry. See parent commit for more details (split from parent for better readability). Signed-off-by: Marc Herbert <marc.herbert@intel.com>
9 lines
302 B
CMake
9 lines
302 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(shell_module)
|
|
|
|
target_sources(app PRIVATE src/main.c src/test_module.c)
|
|
target_sources_ifdef(CONFIG_SHELL_DYNAMIC_CMDS app PRIVATE src/dynamic_cmd.c src/qsort.c)
|