From 1690cc5b779865fd9dc95153226b3e90fbb1a682 Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Sat, 9 Aug 2025 20:36:03 -0400 Subject: [PATCH] feat: Introduce CMake build system for C++ project --- CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f16e457 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.16) +project(observations-on-the-sublime-dynamics-of-eroding-matter) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +# Find SDL2 +find_package(SDL2 REQUIRED) + +# Add executable +add_executable(${PROJECT_NAME} src/main.cpp) + +# Link SDL2 +target_link_libraries(${PROJECT_NAME} SDL2::SDL2) + +# Include directories for SDL2 +target_include_directories(${PROJECT_NAME} PRIVATE ${SDL2_INCLUDE_DIRS})