From e51673942bd7f536ea66697cd3f892b832bf8c22 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Mon, 6 Jan 2025 09:59:16 +1300 Subject: [PATCH] Add SDL3 renderer to base CMakeLists and fix error on OSX --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10a49b8..d21948b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,12 +3,17 @@ project(clay) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") +if(APPLE) + enable_language(OBJC) +endif() + add_subdirectory("examples/cpp-project-example") add_subdirectory("examples/raylib-multi-context") add_subdirectory("examples/raylib-sidebar-scrolling-container") # add_subdirectory("examples/cairo-pdf-rendering") Some issue with github actions populating cairo, disable for now if(NOT MSVC) add_subdirectory("examples/clay-official-website") + add_subdirectory("examples/sdl3_renderer") endif() add_subdirectory("examples/introducing-clay-video-demo") add_subdirectory("examples/SDL2-video-demo")