summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-02-19 14:00:11 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-02-19 14:00:11 -0500
commit9d4fbd735e60c8bfd8360a9cdcfc1c757a6cced1 (patch)
tree3b7aa9cc4741aa50ddf1ac4f77f07cca3d12ffdf /CMakeLists.txt
Initial Commit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
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