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)