mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Created Files app to browse PC and ESP32 files. - Refactored toolbars so it's now a proper widget and allows for changing its properties from the app - Toolbar now has extra action buttons - Settings app now has a proper icon - Minor cleanup in Desktop app
39 lines
904 B
CMake
39 lines
904 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_RECURSE SOURCES "src/*.c")
|
|
file(GLOB_RECURSE HEADERS "src/*.h")
|
|
|
|
add_library(tactility OBJECT)
|
|
target_sources(tactility
|
|
PRIVATE ${SOURCES}
|
|
PUBLIC ${HEADERS}
|
|
)
|
|
target_include_directories(tactility
|
|
PRIVATE src/
|
|
INTERFACE src/
|
|
)
|
|
|
|
if (DEFINED ENV{ESP_IDF_VERSION})
|
|
add_definitions(-DESP_PLATFORM)
|
|
target_link_libraries(tactility
|
|
PUBLIC tactility-core
|
|
PUBLIC idf::lvgl # libs/
|
|
PUBLIC idf::driver
|
|
PUBLIC idf::spiffs
|
|
PUBLIC idf::nvs_flash
|
|
PUBLIC idf::newlib # for scandir() and related
|
|
)
|
|
else()
|
|
add_definitions(-D_Nullable=)
|
|
add_definitions(-D_Nonnull=)
|
|
target_link_libraries(tactility
|
|
PUBLIC tactility-core
|
|
PUBLIC lvgl
|
|
PUBLIC freertos-kernel
|
|
)
|
|
endif()
|
|
|