diff --git a/CMakeLists.txt b/CMakeLists.txt index 85388f9..1c3d58d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ if (NOT SDL3_FOUND) endif() # Archivos fuente -file(GLOB SOURCE_FILES source/*.cpp) +file(GLOB SOURCE_FILES source/*.cpp source/external/*.cpp) # Comprobar si se encontraron archivos fuente if(NOT SOURCE_FILES) diff --git a/source/ball.h b/source/ball.h index 3158e7c..498560a 100644 --- a/source/ball.h +++ b/source/ball.h @@ -3,7 +3,7 @@ #include // for SDL_FRect #include // for shared_ptr, unique_ptr #include "defines.h" // for Color -#include "sprite.h" // for Sprite +#include "external/sprite.h" // for Sprite class Texture; class Ball diff --git a/source/dbgtxt.h b/source/external/dbgtxt.h similarity index 100% rename from source/dbgtxt.h rename to source/external/dbgtxt.h diff --git a/source/sprite.cpp b/source/external/sprite.cpp similarity index 100% rename from source/sprite.cpp rename to source/external/sprite.cpp diff --git a/source/sprite.h b/source/external/sprite.h similarity index 100% rename from source/sprite.h rename to source/external/sprite.h diff --git a/source/stb_image.h b/source/external/stb_image.h similarity index 100% rename from source/stb_image.h rename to source/external/stb_image.h diff --git a/source/texture.cpp b/source/external/texture.cpp similarity index 100% rename from source/texture.cpp rename to source/external/texture.cpp diff --git a/source/texture.h b/source/external/texture.h similarity index 100% rename from source/texture.h rename to source/external/texture.h diff --git a/source/main.cpp b/source/main.cpp index 2edbaf8..051f5cc 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -14,9 +14,9 @@ #include // for operator+, string, to_string #include // for vector #include "ball.h" // for Ball -#include "dbgtxt.h" // for dbg_init, dbg_print +#include "external/dbgtxt.h" // for dbg_init, dbg_print #include "defines.h" // for SCREEN_WIDTH, SCREEN_HEIGHT, WINDOW_SIZE -#include "texture.h" // for Texture +#include "external/texture.h" // for Texture // Variables globales SDL_Window *window = nullptr;