This repository has been archived on 2023-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
mipt_cpp/term2/seminar03_state/CMakeLists.txt
2023-03-11 14:34:12 +03:00

17 lines
784 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)