2021-11-22 10:51:51 +01:00
|
|
|
cmake_minimum_required(VERSION 3.12.4)
|
2020-10-26 08:05:32 -06:00
|
|
|
|
2023-11-06 14:34:50 +01:00
|
|
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
|
|
|
2021-11-22 10:51:51 +01:00
|
|
|
if(NOT ESP_PLATFORM)
|
2023-11-28 02:17:21 -06:00
|
|
|
project(lvgl LANGUAGES C CXX ASM HOMEPAGE_URL https://github.com/lvgl/lvgl)
|
2021-11-22 10:51:51 +01:00
|
|
|
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)
|
2022-01-19 22:14:04 +01:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/esp.cmake)
|
2021-01-04 14:18:11 +01:00
|
|
|
elseif(ZEPHYR_BASE)
|
2022-01-19 22:14:04 +01:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/zephyr.cmake)
|
2021-11-22 10:51:51 +01:00
|
|
|
elseif(MICROPY_DIR)
|
2022-01-19 22:14:04 +01:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/micropython.cmake)
|
2020-10-26 08:05:32 -06:00
|
|
|
else()
|
2022-01-19 22:14:04 +01:00
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/custom.cmake)
|
2021-10-06 21:31:37 +02:00
|
|
|
endif()
|
2023-11-06 14:34:50 +01:00
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
|
|
target_compile_definitions(lvgl PUBLIC LV_ATTRIBUTE_EXTERN_DATA=__declspec\(dllimport\))
|
|
|
|
else()
|
|
|
|
target_compile_definitions(lvgl PUBLIC LV_ATTRIBUTE_EXTERN_DATA=__declspec\(dllexport\))
|
|
|
|
endif()
|
|
|
|
endif()
|