# Copyright (c) 2023 Fabian Blatz # SPDX-License-Identifier: Apache-2.0 cmake_minimum_required(VERSION 3.20.0) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(lvgl_sample) set(LVGL_DIR ${ZEPHYR_LVGL_MODULE_DIR}) FILE(GLOB app_sources src/*.c) target_sources(app PRIVATE ${app_sources}) target_include_directories(app PRIVATE ${LVGL_DIR}/demos/ ) target_sources_ifdef(CONFIG_LV_USE_DEMO_MUSIC app PRIVATE ${LVGL_DIR}/demos/music/lv_demo_music_list.c ${LVGL_DIR}/demos/music/lv_demo_music.c ${LVGL_DIR}/demos/music/lv_demo_music_main.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_next.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_top_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_4_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_4.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_right.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_1.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_slider_knob_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_3.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_pause.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_pause_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_bottom_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_2_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_play_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_top.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_play_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_1_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_bottom.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_left_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_play.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_list_border.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_2.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_next_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_play.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_list_border_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_rnd.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_3.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_prev_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_loop.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_1.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_slider_knob.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_right_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_corner_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_left.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_2_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_3_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_1_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_2.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_prev.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_rnd_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_pause_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_3_large.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_pause.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_logo.c ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_loop_large.c ) target_sources_ifdef(CONFIG_LV_USE_DEMO_BENCHMARK app PRIVATE ${LVGL_DIR}/demos/benchmark/lv_demo_benchmark.c ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_indexed16.c ${LVGL_DIR}/demos/benchmark/assets/lv_font_bechmark_montserrat_28_compr_az.c.c ${LVGL_DIR}/demos/benchmark/assets/lv_font_bechmark_montserrat_16_compr_az.c.c ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_argb.c ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_alpha16.c ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_rgb.c ${LVGL_DIR}/demos/benchmark/assets/lv_font_bechmark_montserrat_12_compr_az.c.c ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_chroma_keyed.c ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_rgb565a8.c ) target_sources_ifdef(CONFIG_LV_USE_DEMO_STRESS app PRIVATE ${LVGL_DIR}/demos/stress/lv_demo_stress.c )