Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ target_link_libraries(sam3_profile_edgetam PRIVATE sam3)
# SDL2 + ImGui are optional — build only if SDL2 is found.
find_package(SDL2 QUIET)

if(SDL2_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt")
if(SDL2_FOUND)
add_subdirectory(third-party)

add_executable(sam3_image main_image.cpp)
Expand All @@ -22,5 +22,5 @@ if(SDL2_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt
add_executable(sam3_video main_video.cpp)
target_link_libraries(sam3_video PRIVATE sam3 imgui-sdl2 SDL2::SDL2)
else()
message(STATUS "SDL2 not found or third-party/ missing — skipping GUI examples")
message(STATUS "SDL2 not found — skipping GUI examples")
endif()
Loading