1cmake_minimum_required(VERSION 3.12.4)
2
3if(NOT ESP_PLATFORM)
4  project(lvgl HOMEPAGE_URL https://github.com/lvgl/lvgl)
5endif()
6
7set(LVGL_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR})
8
9if(ESP_PLATFORM)
10  include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/esp.cmake)
11elseif(ZEPHYR_BASE)
12  include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/zephyr.cmake)
13elseif(MICROPY_DIR)
14  include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/micropython.cmake)
15else()
16  include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/custom.cmake)
17endif()
18