mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Improved logging code by splitting functionality up into different files - Set C++23 as new standard (it was already the implied standard due to some code, but now it's explicit)
34 lines
703 B
CMake
34 lines
703 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
if (DEFINED ENV{ESP_IDF_VERSION})
|
|
idf_component_register(
|
|
SRC_DIRS "Source/"
|
|
INCLUDE_DIRS "Source/"
|
|
PRIV_INCLUDE_DIRS "Private/"
|
|
REQUIRES lvgl
|
|
)
|
|
|
|
else()
|
|
file(GLOB SOURCES "Source/*.c*")
|
|
file(GLOB HEADERS "Source/*.h*")
|
|
|
|
add_library(lv_screenshot STATIC)
|
|
|
|
target_sources(lv_screenshot
|
|
PRIVATE ${SOURCES}
|
|
PUBLIC ${HEADERS}
|
|
)
|
|
|
|
target_include_directories(lv_screenshot
|
|
PRIVATE Private
|
|
PUBLIC Source
|
|
)
|
|
|
|
target_link_libraries(lv_screenshot
|
|
PUBLIC lvgl
|
|
)
|
|
endif() |