feat(cmake): enable glfw event waiting for raylib

This commit is contained in:
illyum 2024-09-12 21:13:49 -06:00
parent ff75af9f72
commit 7cdf73ac20

View File

@ -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})