Create Hamiltonian-based simulation
This commit is contained in:
11
CMakeLists.txt
Normal file
11
CMakeLists.txt
Normal 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)
|
||||
Reference in New Issue
Block a user