-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
73 lines (65 loc) · 1.98 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.26)
project(MiniYuGiOhGame)
## If you want to link SFML statically
set(SFML_STATIC_LIBRARIES TRUE)
## In most cases better set in the CMake cache
set(SFML_DIR "C:/SFML/lib/cmake/SFML")
set(CMAKE_C_COMPILER "C:/mingw64/bin/gcc.exe")
set(CMAKE_CXX_COMPILER "C:/mingw64/bin/g++.exe")
set(SOURCES
src/main.cpp
src/Card.cpp
src/Player.cpp
src/Deck.cpp
src/MonsterCard.cpp
src/PlayingField.cpp
src/SpellCard.cpp
src/TrapCard.cpp
src/YugiMuto.cpp
src/SetoKaiba.cpp
src/GUIGameWindow.cpp
src/GUIPlayerPanel.cpp
src/GUILifeBar.cpp
src/GUIHand.cpp
src/GUIPlayingField.cpp
src/GUIGraveyard.cpp
src/GUIWindow.cpp
src/GUIWindowElement.cpp
src/GUICardInfoPanel.cpp
src/GUIMainMenuWindow.cpp
src/GameManager.cpp
src/GUIPhaseText.cpp
src/GUIGameState.cpp
src/GUIPauseMenu.cpp
src/GUISettings.cpp
)
set(HEADERS
include/Card.h
include/Player.h
include/Deck.h
include/MonsterCard.h
include/SpellCard.h
include/PlayingField.h
include/TrapCard.h
include/YugiMuto.h
include/SetoKaiba.h
include/GUIGameWindow.h
include/GUIPlayerPanel.h
include/GUILifeBar.h
include/GUIHand.h
include/GUIPlayingField.h
include/GUIGraveyard.h
include/GUIWindow.h
include/GUIWindowElement.h
include/GUICardInfoPanel.h
include/GUIMainMenuWindow.h
include/GameManager.h
include/GUIPhaseText.h
include/GUIGameState.h
include/GUIPauseMenu.h
include/GUISettings.h
)
find_package(SFML COMPONENTS graphics audio REQUIRED)
add_executable(MiniYuGiOhGame ${SOURCES} ${HEADERS})
target_include_directories(MiniYuGiOhGame PRIVATE include src textures)
target_link_libraries(MiniYuGiOhGame sfml-graphics sfml-audio -static-libgcc -static-libstdc++)