A small game engine for 2D games based of Raylib
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
927 B

Include(FetchContent)
FetchContent_Declare(
RayLib
GIT_REPOSITORY https://github.com/raysan5/raylib
GIT_TAG 4.5.0
GIT_PROGRESS TRUE
USES_TERMINAL_DOWNLOAD TRUE
GIT_SHALLOW 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 include/components/panel_component.h src/panel_component.cpp)
target_include_directories(Engine PUBLIC include)
target_link_libraries(Engine PUBLIC raylib)
file(COPY assets/apple.png DESTINATION assets/apple.png)