This commit is contained in:
2025-04-23 22:55:22 +02:00
commit 8fd5f1cf1e
8 changed files with 565 additions and 0 deletions

18
CMakeLists.txt Normal file
View File

@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 4.0)
project(factorygame C)
set(CMAKE_C_STANDARD 23)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SDL2 REQUIRED sdl2)
add_executable(factorygame
util/font.c
util/font.h
util/audio.c
util/audio.h
main.c) # Ensure the target is defined before linking
target_link_libraries(factorygame SDL2 SDL2_ttf SDL2_image SDL2_gfx SDL2_mixer SDL2_net m)