From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- CMakeLists.txt | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a94f508 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,38 @@ +cmake_minimum_required(VERSION 3.30) + +project(game) + +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + +set(SDL_DIR contrib/SDL-3.2.8) + +set(SDL_SHARED OFF) +set(SDL_STATIC ON) +add_subdirectory(${SDL_DIR}) + +add_executable(game + src/main.c) + +target_include_directories(game PRIVATE + ${SDL_DIR}/include + include) + +target_link_libraries(game + SDL3-static + filesystem + math + swgfx) + +target_compile_options(game PRIVATE -Wall -Wextra) + +# Tools. + +add_executable(ase + tools/ase/main.c) + +target_include_directories(ase PRIVATE + include) + +target_compile_options(ase PRIVATE -Wall -Wextra) -- cgit v1.2.3