From 9f27fbee68a4ad8bf70a8a90a630d12995cf69ce Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 25 Nov 2024 12:04:12 +0100 Subject: [PATCH] Create CMakeLists.txt --- CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..64ed854 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.10) + +project(Obstacle) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED True) + +find_package(SDL2 REQUIRED) +find_package(SDL2_image REQUIRED) +find_package(SDL2_ttf REQUIRED) + +add_executable(Obstacle + Main.cpp + Game.cpp + Game.h + Helper.cpp + Helper.h +) + +target_link_libraries(Obstacle SDL2::SDL2 SDL2_image::SDL2_image SDL2_ttf::SDL2_ttf) \ No newline at end of file