Include SDL as subproject to fix CI simulator build (#158)

This commit is contained in:
Ken Van Hoeylandt
2025-01-11 14:40:20 +01:00
committed by GitHub
parent 352ceacfcb
commit 72a9eb1279
9 changed files with 17 additions and 39 deletions
+1 -7
View File
@@ -24,7 +24,6 @@ if (DEFINED ENV{ESP_IDF_VERSION})
)
else()
file(GLOB_RECURSE SOURCES "Source/*.c*")
add_executable(AppSim ${SOURCES})
target_link_libraries(AppSim
@@ -32,14 +31,9 @@ else()
PRIVATE TactilityCore
PRIVATE TactilityHeadless
PRIVATE Simulator
PRIVATE SDL2::SDL2-static SDL2-static
)
if (NOT DEFINED ENV{SKIP_SDL})
find_package(SDL2 REQUIRED CONFIG)
include_directories(${SDL2_INCLUDE_DIRS})
target_link_libraries(AppSim PRIVATE ${SDL2_LIBRARIES})
endif()
add_definitions(-D_Nullable=)
add_definitions(-D_Nonnull=)
endif()