diff --git a/.gitignore b/.gitignore index c248bb8..833c895 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +demo1_pixels_wave build/ # ---> C++ @@ -34,3 +35,73 @@ build/ *.out *.app +# ---> macOS +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# ---> Windows +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ---> Linux +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + diff --git a/CMakeLists.txt b/CMakeLists.txt index f5b6d1c..c14b8c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ if (NOT SDL3_FOUND) endif() # Archivos fuente -file(GLOB SOURCE_FILES *.cpp) +file(GLOB SOURCE_FILES source/*.cpp) # Comprobar si se encontraron archivos fuente if(NOT SOURCE_FILES) diff --git a/Makefile b/Makefile index 1f149ca..34e6479 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # Variables comunes -SOURCE := demo1_pixels_wave.cpp +SOURCE := source/*.cpp EXECUTABLE_NAME := demo1_pixels_wave CXXFLAGS := -std=c++20 -Wall -Os -ffunction-sections -fdata-sections # Opciones comunes de compilación LDFLAGS := -lSDL3 # Flags de enlace comunes diff --git a/demo1_pixels_wave.cpp b/source/demo1_pixels_wave.cpp similarity index 100% rename from demo1_pixels_wave.cpp rename to source/demo1_pixels_wave.cpp