Update CMakeLists.txt

This commit is contained in:
Mathias Wagner 2024-11-25 21:59:14 +01:00
parent d0c8bfa491
commit 7401610cd0

View File

@ -10,11 +10,18 @@ find_package(SDL2_image REQUIRED)
find_package(SDL2_ttf REQUIRED) find_package(SDL2_ttf REQUIRED)
add_executable(Obstacle add_executable(Obstacle
Main.cpp src/main.cpp
Game.cpp src/Renderer.cpp
Game.h src/Renderer.h
Helper.cpp src/states/GameState.h
Helper.h src/states/InGameState.cpp
src/states/InGameState.h
src/states/MainMenuState.cpp
src/states/MainMenuState.h
src/entities/Player.cpp
src/entities/Player.h
src/entities/Opponent.cpp
src/entities/Opponent.h
) )
target_link_libraries(Obstacle SDL2::SDL2 SDL2_image::SDL2_image SDL2_ttf::SDL2_ttf) target_link_libraries(Obstacle SDL2::SDL2 SDL2_image::SDL2_image SDL2_ttf::SDL2_ttf)