1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4
5find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6include(${ZEPHYR_BASE}/cmake/cfb.cmake NO_POLICY_SCOPE)
7project(cfb_custom_font)
8
9target_sources(app PRIVATE src/main.c)
10
11set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
12generate_cfb_font_for_target(app fonts/dice.png ${gen_dir}/cfb_font_dice.h 32 32 --first 49 --last 54)
13