-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (36 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.26)
project(PacManGame)
set(CMAKE_CXX_STANDARD 17)
add_executable(PacManGame main.cpp
Labyrinth.h
Labyrinth.cpp
Directions.h
Resources.cpp
Resources.h
Entity.cpp
Entity.h
IMovable.cpp
IMovable.h
IVisible.cpp
IVisible.h
Ghost.cpp
Ghost.h
PacMan.cpp
PacMan.h
Scene.cpp
Scene.h
Engine.cpp
Engine.h)
file(COPY textures DESTINATION ${CMAKE_BINARY_DIR})
file(COPY labyrinth DESTINATION ${CMAKE_BINARY_DIR})
set(SFML_STATIC_LIBRARIES TRUE)
set(SFML_DIR "C:\\programming\\cpp\\lib\\sfml\\SFML-2.6.1\\lib\\cmake\\SFML")
find_package(SFML COMPONENTS system window graphics audio network REQUIRED)
include_directories(C:\\programming\\cpp\\lib\\sfml\\SFML-2.6.1\\include\\SFML)
include_directories(textures, labyrinth)
if(SFML_FOUND)
message(STATUS "SFML found")
target_link_libraries(PacManGame sfml-system sfml-window sfml-graphics sfml-audio)
else()
message(FATAL_ERROR "SFML not found")
endif()