diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ddc4c4..ee9682d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,15 +21,15 @@ endif () # Define the executable target before linking libraries -add_executable(Pong main.cpp - SdlWrapper.h - Game.h - VisibleObjects/Ball.h - Vec2d/Vec2d.h - Vec2d/Bump.h - VisibleObjects/PlayerPaddle.h - VisibleObjects/Side.h - VisibleObjects/Score.h) +add_executable(Pong src/main.cpp + src/SdlWrapper.h + src/Game.h + src/VisibleObjects/Ball.h + src/Vec2d/Vec2d.h + src/Vec2d/Bump.h + src/VisibleObjects/PlayerPaddle.h + src/VisibleObjects/Side.h + src/VisibleObjects/Score.h) # Now link the libraries to the target target_link_libraries(Pong ${SDL2_LIBRARIES} ${SDL2_GFX_LIBRARY} ${SDL2_TTF_LIBRARY}) diff --git a/Game.h b/src/Game.h similarity index 100% rename from Game.h rename to src/Game.h diff --git a/SdlWrapper.h b/src/SdlWrapper.h similarity index 100% rename from SdlWrapper.h rename to src/SdlWrapper.h diff --git a/Vec2d/Bump.h b/src/Vec2d/Bump.h similarity index 100% rename from Vec2d/Bump.h rename to src/Vec2d/Bump.h diff --git a/Vec2d/Vec2d.h b/src/Vec2d/Vec2d.h similarity index 100% rename from Vec2d/Vec2d.h rename to src/Vec2d/Vec2d.h diff --git a/VisibleObjects/Ball.h b/src/VisibleObjects/Ball.h similarity index 100% rename from VisibleObjects/Ball.h rename to src/VisibleObjects/Ball.h diff --git a/VisibleObjects/PlayerPaddle.h b/src/VisibleObjects/PlayerPaddle.h similarity index 100% rename from VisibleObjects/PlayerPaddle.h rename to src/VisibleObjects/PlayerPaddle.h diff --git a/VisibleObjects/Score.h b/src/VisibleObjects/Score.h similarity index 100% rename from VisibleObjects/Score.h rename to src/VisibleObjects/Score.h diff --git a/VisibleObjects/Side.h b/src/VisibleObjects/Side.h similarity index 100% rename from VisibleObjects/Side.h rename to src/VisibleObjects/Side.h diff --git a/main.cpp b/src/main.cpp similarity index 100% rename from main.cpp rename to src/main.cpp