mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
* initial changes for waveshare s3 touch support * fix lvgl locking * fix for lvgl locking * cleaned up dependencies * boards now depend on tactility instead of tactility-esp * revert deletion * remove component * working touch&display driver * added waveshare to github actions * cleanup * fix for driver * fix for sim build * build fixes * updated docs * updated docs * attempt new sdl2 github action * revert * fixes for clion/cmdline build environment wasn't parsed properly * temporarily disable pc sim build
36 lines
807 B
CMake
36 lines
807 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
file(GLOB SOURCES "src/*.c")
|
|
file(GLOB HEADERS "src/*.h")
|
|
|
|
add_library(tactility-core OBJECT)
|
|
target_sources(tactility-core
|
|
PRIVATE ${SOURCES}
|
|
PUBLIC ${HEADERS}
|
|
)
|
|
target_include_directories(tactility-core SYSTEM
|
|
PRIVATE src/
|
|
INTERFACE src/
|
|
)
|
|
|
|
if (DEFINED ENV{ESP_IDF_VERSION})
|
|
add_definitions(-DESP_PLATFORM)
|
|
target_link_libraries(tactility-core
|
|
PUBLIC mlib
|
|
PUBLIC idf::mbedtls
|
|
PRIVATE idf::nvs_flash # ESP-IDF // for secure.c
|
|
)
|
|
else()
|
|
add_definitions(-D_Nullable=)
|
|
add_definitions(-D_Nonnull=)
|
|
target_link_libraries(tactility-core
|
|
PUBLIC mlib
|
|
PUBLIC mbedtls
|
|
PUBLIC freertos-kernel
|
|
)
|
|
endif()
|