12 lines
291 B
CMake
12 lines
291 B
CMake
cmake_minimum_required(VERSION 3.31)
|
|
project(sdlzasedaco C)
|
|
|
|
set(CMAKE_C_STANDARD 23)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(SDL2 REQUIRED sdl2)
|
|
|
|
add_executable(sdlzasedaco main.c) # Ensure the target is defined before linking
|
|
|
|
target_link_libraries(sdlzasedaco SDL2 SDL2_ttf)
|