From 9d4fbd735e60c8bfd8360a9cdcfc1c757a6cced1 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Mon, 19 Feb 2024 14:00:11 -0500 Subject: Initial Commit --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..2207c93 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.28) +project(pong C) + +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Werror") + +find_package(SDL2 REQUIRED CONFIG REQUIRED COMPONENTS SDL2) + +add_executable(pong main.c + pong.c + pong.h + screen.c + screen.h) + +target_link_libraries(pong PRIVATE SDL2::SDL2) \ No newline at end of file -- cgit v1.2.3