An error occurred while loading the file. Please try again.
-
Сулимов Игорь Андреевич authored8067d964
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/States/SelectState.cpp"
"source/States/GameState.cpp"
"source/Draw/Menu.cpp"
"source/Draw/Button.cpp"
"source/Draw/MyFont.cpp"
"source/Commands/ExitCommand.cpp"
"source/Commands/GameCommand.cpp"
"source/MazeContent/Buildings/Maze.cpp"
"source/MazeContent/Buildings/Room.cpp"
"source/MazeContent/Buildings/Wall.cpp"
"source/MazeContent/Buildings/Pass.cpp"
"source/MazeContent/Buildings/Teleport.cpp"
"source/MazeContent/Entities/IEntity.cpp"
"source/MazeContent/Entities/Pacman.cpp"
"source/MazeContent/Entities/StaticEntities/Food.cpp"
"source/MazeContent/Entities/DynamicEntities/Enemy.cpp"
"source/Context/GameContext.cpp"
"source/Context/ContextManager.cpp"
"source/Builder/GameBuilderDirector.cpp"
"source/Builder/Builders/CommonBuilder.cpp"
"source/Builder/Builders/SimpleBuilder.cpp"
"source/Builder/Builders/ComplexBuilder.cpp"
"source/Builder/Builders/BonusBuilder.cpp"
"source/Events/DeleteStaticEntity.cpp"
"source/Events/LostGame.cpp"
"source/Draw/Texture/EnemyTexture.cpp"
"source/Draw/Texture/FoodTexture.cpp"
"source/Draw/Texture/PacmanTexture.cpp"
)
target_compile_definitions(pac-man PUBLIC ASSETS_PATH="${CMAKE_CURRENT_SOURCE_DIR}/assets/")
target_include_directories(pac-man PUBLIC include/)
target_link_libraries(pac-man PUBLIC sfml-window sfml-graphics sfml-system)