mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-25 08:15:22 +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>
13 lines
411 B
CMake
13 lines
411 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
include(${ZEPHYR_BASE}/cmake/cfb.cmake NO_POLICY_SCOPE)
|
|
project(cfb_custom_font)
|
|
|
|
target_sources(app PRIVATE src/main.c)
|
|
|
|
set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
|
|
generate_cfb_font_for_target(app fonts/dice.png ${gen_dir}/cfb_font_dice.h 32 32 --first 49 --last 54)
|