2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2018-11-09 04:56:35 +08:00
|
|
|
|
2020-05-29 12:02:17 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2020-02-12 22:00:46 +08:00
|
|
|
include(${ZEPHYR_BASE}/cmake/cfb.cmake NO_POLICY_SCOPE)
|
2018-11-09 04:56:35 +08:00
|
|
|
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)
|