Initial commit

This commit is contained in:
2025-12-06 21:35:19 +08:00
commit 9af460ac12
42 changed files with 4898 additions and 0 deletions

16
CMakeLists.txt Normal file
View File

@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.10)
project(SDL2_Example LANGUAGES C)
# Set the C standard to C99
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
# Find SDL2
find_package(SDL2 REQUIRED)
# Add your executable target
file(GLOB SOURCES "src/*.c")
add_executable(star-invaders ${SOURCES})
# Link the SDL2 libraries to your executable
target_link_libraries(star-invaders PRIVATE SDL2::SDL2)