mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 03:13:14 +00:00
* Remove version from artifact name * Target C++ 20 and higher * Use cpp string * Better crash implementation * String utils in cpp style * Replace parameter methods with start() method * MutexType to Mutex::Type * Kernel c to cpp style * Cleanup event flag * More cpp conversions * Test fixes * Updated ideas docs
30 lines
569 B
CMake
30 lines
569 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
file(GLOB SOURCES "src/*.c*")
|
|
file(GLOB HEADERS "src/*.h*")
|
|
|
|
add_library(lv_screenshot STATIC)
|
|
|
|
target_sources(lv_screenshot
|
|
PRIVATE ${SOURCES}
|
|
PUBLIC ${HEADERS}
|
|
)
|
|
|
|
target_include_directories(lv_screenshot
|
|
PRIVATE private
|
|
PUBLIC src
|
|
)
|
|
|
|
if (DEFINED ENV{ESP_IDF_VERSION})
|
|
target_link_libraries(lv_screenshot
|
|
PUBLIC idf::lvgl
|
|
)
|
|
else()
|
|
target_link_libraries(lv_screenshot
|
|
PUBLIC lvgl
|
|
)
|
|
endif() |