2021-11-22 10:51:51 +01:00
|
|
|
cmake_minimum_required(VERSION 3.12.4)
|
2020-10-26 08:05:32 -06:00
|
|
|
|
2021-11-22 10:51:51 +01:00
|
|
|
if(NOT ESP_PLATFORM)
|
|
|
|
project(lvgl HOMEPAGE_URL https://github.com/lvgl/lvgl)
|
|
|
|
endif()
|
2020-12-20 13:34:48 +01:00
|
|
|
|
2021-11-22 10:51:51 +01:00
|
|
|
set(LVGL_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR})
|
2020-10-26 08:05:32 -06:00
|
|
|
|
2021-11-22 10:51:51 +01:00
|
|
|
if(ESP_PLATFORM)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/cmake/esp.cmake)
|
2021-01-04 14:18:11 +01:00
|
|
|
elseif(ZEPHYR_BASE)
|
2021-11-22 10:51:51 +01:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/cmake/zephyr.cmake)
|
|
|
|
elseif(MICROPY_DIR)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/cmake/micropython.cmake)
|
2020-10-26 08:05:32 -06:00
|
|
|
else()
|
2021-11-22 10:51:51 +01:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/cmake/custom.cmake)
|
2021-10-06 21:31:37 +02:00
|
|
|
endif()
|