1# Copyright (c) 2023 Fabian Blatz <fabianblatz@gmail.com> 2# SPDX-License-Identifier: Apache-2.0 3 4cmake_minimum_required(VERSION 3.20.0) 5 6find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 7project(lvgl_sample) 8 9set(LVGL_DIR ${ZEPHYR_LVGL_MODULE_DIR}) 10 11FILE(GLOB app_sources src/*.c) 12target_sources(app PRIVATE ${app_sources}) 13 14target_include_directories(app PRIVATE 15 ${LVGL_DIR}/demos/ 16) 17 18target_sources_ifdef(CONFIG_LV_USE_DEMO_MUSIC app PRIVATE 19 ${LVGL_DIR}/demos/music/lv_demo_music_list.c 20 ${LVGL_DIR}/demos/music/lv_demo_music.c 21 ${LVGL_DIR}/demos/music/lv_demo_music_main.c 22 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_next.c 23 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_top_large.c 24 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_4_large.c 25 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_4.c 26 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_right.c 27 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_1.c 28 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_slider_knob_large.c 29 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_3.c 30 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_pause.c 31 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_pause_large.c 32 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_bottom_large.c 33 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_2_large.c 34 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_play_large.c 35 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_top.c 36 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_play_large.c 37 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_1_large.c 38 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_wave_bottom.c 39 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_left_large.c 40 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_play.c 41 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_list_border.c 42 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_2.c 43 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_next_large.c 44 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_play.c 45 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_list_border_large.c 46 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_rnd.c 47 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_3.c 48 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_prev_large.c 49 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_loop.c 50 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_1.c 51 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_slider_knob.c 52 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_right_large.c 53 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_corner_large.c 54 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_corner_left.c 55 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_2_large.c 56 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_3_large.c 57 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_icon_1_large.c 58 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_2.c 59 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_prev.c 60 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_rnd_large.c 61 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_pause_large.c 62 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_cover_3_large.c 63 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_list_pause.c 64 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_logo.c 65 ${LVGL_DIR}/demos/music/assets/img_lv_demo_music_btn_loop_large.c 66) 67 68target_sources_ifdef(CONFIG_LV_USE_DEMO_BENCHMARK app PRIVATE 69 ${LVGL_DIR}/demos/benchmark/lv_demo_benchmark.c 70 ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_indexed16.c 71 ${LVGL_DIR}/demos/benchmark/assets/lv_font_bechmark_montserrat_28_compr_az.c.c 72 ${LVGL_DIR}/demos/benchmark/assets/lv_font_bechmark_montserrat_16_compr_az.c.c 73 ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_argb.c 74 ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_alpha16.c 75 ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_rgb.c 76 ${LVGL_DIR}/demos/benchmark/assets/lv_font_bechmark_montserrat_12_compr_az.c.c 77 ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_chroma_keyed.c 78 ${LVGL_DIR}/demos/benchmark/assets/img_benchmark_cogwheel_rgb565a8.c 79) 80 81target_sources_ifdef(CONFIG_LV_USE_DEMO_STRESS app PRIVATE 82 ${LVGL_DIR}/demos/stress/lv_demo_stress.c 83) 84