From 7cdf73ac201bfaf8446c3f92895f2a8b379fd2bc Mon Sep 17 00:00:00 2001 From: illyum Date: Thu, 12 Sep 2024 21:13:49 -0600 Subject: [PATCH] feat(cmake): enable glfw event waiting for raylib --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eddf5d1..db7dfdf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,9 @@ FetchContent_Declare( raylib URL https://github.com/raysan5/raylib/archive/refs/tags/5.0.zip ) +set(BUILD_EXAMPLES OF CACHE BOOL "" FORCE) +set(SUPPORT_EVENTS_WAITING ON CACHE BOOL "" FORCE) +set(SUPPORT_BUSY_WAIT_LOOP OFF CACHE BOOL "" FORCE) FetchContent_MakeAvailable(raylib) FetchContent_Declare( @@ -109,6 +112,10 @@ set(ENGINE_SOURCES src/components/input_component.cpp src/components/input_component.h src/components/health_component.h + src/components/ui_component.cpp + src/components/ui_component.h + src/scene_manager.cpp + src/components/layer_component.h ) add_library(IsoEngine ${ENGINE_SOURCES})