feat(cmake): enable glfw event waiting for raylib
This commit is contained in:
parent
ff75af9f72
commit
7cdf73ac20
@ -37,6 +37,9 @@ FetchContent_Declare(
|
|||||||
raylib
|
raylib
|
||||||
URL https://github.com/raysan5/raylib/archive/refs/tags/5.0.zip
|
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_MakeAvailable(raylib)
|
||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
@ -109,6 +112,10 @@ set(ENGINE_SOURCES
|
|||||||
src/components/input_component.cpp
|
src/components/input_component.cpp
|
||||||
src/components/input_component.h
|
src/components/input_component.h
|
||||||
src/components/health_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})
|
add_library(IsoEngine ${ENGINE_SOURCES})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user