-
Сулимов Игорь Андреевич authored4ba549ab
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 17)
project(pac-man)
set(BUILD_SHARED_LIBS FALSE)
include(FetchContent)
FetchContent_Declare(sfml GIT_REPOSITORY https://github.com/SFML/SFML.git GIT_TAG 2.6.1)
FetchContent_MakeAvailable(sfml)
add_executable(pac-man
"source/main.cpp"
"source/Application.cpp"
"source/State/SelectState.cpp"
"source/Draw/Menu.cpp"
"source/Draw/Button.cpp"
"source/Draw/MyFont.cpp"
"source/Commands/ExitCommand.cpp"
"source/Commands/GameCommand.cpp"
"source/Maze_Content/Buildings/Room.cpp"
)
target_compile_definitions(pac-man PRIVATE
FONT_PATH="${CMAKE_CURRENT_SOURCE_DIR}/аssets/Fonts/"
# TEXTURE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/source/Assets/Textures/"
# VIDEO_PATH="${CMAKE_CURRENT_SOURCE_DIR}/source/Assets/Video/"
# SOUND_PATH="${CMAKE_CURRENT_SOURCE_DIR}/source/Assets/Sound/"
)
target_include_directories(pac-man PUBLIC include/)
target_link_libraries(pac-man PUBLIC sfml-window sfml-graphics sfml-system)