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 src/main.cpp src/Renderer.cpp src/Renderer.h src/states/GameState.h src/states/InGameState.cpp src/states/InGameState.h src/states/MainMenuState.cpp src/states/MainMenuState.h src/entities/Player.cpp src/entities/Player.h src/entities/Opponent.cpp src/entities/Opponent.h src/states/EndingState.cpp src/states/EndingState.h ) target_link_libraries(Obstacle SDL2::SDL2 SDL2_image::SDL2_image SDL2_ttf::SDL2_ttf)