Include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
RayLib
|
|
GIT_REPOSITORY D:/AntiJeu/cmake-build-debug/_deps/raylib-src
|
|
GIT_TAG 4.5.0
|
|
GIT_PROGRESS TRUE
|
|
)
|
|
FetchContent_MakeAvailable(RayLib)
|
|
|
|
add_executable(Engine
|
|
src/main.cpp
|
|
include/entity.h
|
|
include/transform.h
|
|
include/component.h
|
|
include/scene.h
|
|
include/render_state.h
|
|
src/render_state.cpp
|
|
src/scene.cpp
|
|
include/entities/ui_fps_entity.h
|
|
src/ui_fps_entity.cpp
|
|
include/entities/background_entity.h
|
|
src/background_entity.cpp
|
|
include/components/sprite_component.h src/sprite_component.cpp)
|
|
target_include_directories(Engine PUBLIC include)
|
|
target_link_libraries(Engine PUBLIC raylib)
|
|
file(COPY assets/apple.png DESTINATION assets/apple.png)
|