From c28b5a398520b71ea95f3160de29f59183dd3433 Mon Sep 17 00:00:00 2001 From: Jordan Halase Date: Mon, 30 Sep 2019 12:30:24 -0500 Subject: Build with CMake --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..89a43d3 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 2.6) +project(Asteroids) + +find_package(SDL2 REQUIRED) +include_directories(${SDL2_INCLUDE_DIRS}) +add_executable(Asteroids main.c) +target_link_libraries(Asteroids ${SDL2_LIBRARIES} m) -- cgit v1.2.1