Create Hamiltonian-based simulation

This commit is contained in:
Camden Dixie O'Brien
2025-05-24 09:15:23 +01:00
commit 08a0eff69b
3 changed files with 148 additions and 0 deletions

11
CMakeLists.txt Normal file
View File

@@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.13)
project(cart-and-pole LANGUAGES C)
find_package(SDL2 REQUIRED CONFIG REQUIRED COMPONENTS SDL2)
add_executable(cart-and-pole main.c)
set_property(TARGET cart-and-pole PROPERTY C_STANDARD 11)
set_property(TARGET cart-and-pole PROPERTY C_EXTENSIONS OFF)
target_compile_options(cart-and-pole PRIVATE -Wall -Wextra -pedantic)
target_link_libraries(cart-and-pole PRIVATE m SDL2::SDL2)