cmake_minimum_required(VERSION 3.13) project(ur-sfml) set(CMAKE_CXX_STANDARD 20) set(EXECUTABLE_NAME ur) # setup SFML set(SFML_LIBRARIES sfml-system sfml-window sfml-graphics) find_package(SFML 2.5 REQUIRED COMPONENTS system window graphics) add_executable(${EXECUTABLE_NAME} ur.cpp helper.hpp helper.cpp) target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES}) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/res DESTINATION ${CMAKE_CURRENT_BINARY_DIR})