mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
28 lines
580 B
CMake
28 lines
580 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
if (NOT DEFINED ENV{ESP_IDF_VERSION})
|
|
|
|
file(GLOB_RECURSE SOURCES "Source/*.c*")
|
|
file(GLOB_RECURSE HEADERS "Source/*.h*")
|
|
|
|
add_library(Simulator OBJECT)
|
|
|
|
target_sources(Simulator
|
|
PRIVATE ${SOURCES}
|
|
PUBLIC ${HEADERS}
|
|
)
|
|
|
|
target_link_libraries(Simulator
|
|
PRIVATE Tactility
|
|
PRIVATE TactilityCore
|
|
PRIVATE lvgl
|
|
PRIVATE SDL2-static
|
|
)
|
|
|
|
target_link_libraries(Simulator PRIVATE ${SDL2_LIBRARIES})
|
|
|
|
add_definitions(-D_Nullable=)
|
|
add_definitions(-D_Nonnull=)
|
|
|
|
endif()
|