You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

18 lines
784 B
CMake

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

cmake_minimum_required(VERSION 2.8.0)
project(player_movement)
# Найдём библиотеку SFML в системе
find_package(SFML 2.5 REQUIRED graphics window system)
# Создадим исполняемый файл по имени player_movement из исходных файлов
add_executable(player_movement src/main.cpp src/player.cpp src/player_states.cpp)
# Укажем, что нужно использовать стандарт C++20
target_compile_features(player_movement PRIVATE cxx_std_20)
# Подключим библиотеку SFML к нашему проекту
target_link_libraries(player_movement PRIVATE sfml-graphics sfml-system sfml-window)
# Добавим файл со спрайтами
configure_file(src/hero.png hero.png COPYONLY)