forked from Tematikys/Runebound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·148 lines (135 loc) · 4.46 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
cmake_minimum_required(VERSION 3.10)
project(Runebound CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(NLOHMANN_INCLUDE_DIR "tpl/")
set(SDL2_INCLUDE_DIR "tpl/SDL2/include/")
set(SDL2_LIB_DIR "tpl/SDL2/lib/")
#set(SQLITE_INCLUDE_DIR "tpl/sqlite/")
include_directories("include/")
include_directories(${NLOHMANN_INCLUDE_DIR})
include_directories(${SDL2_INCLUDE_DIR})
#include_directories(${SQLITE_INCLUDE_DIR})
link_directories(${SDL2_LIB_DIR})
# ===== GRAPHICS CLIENT ===== #
add_executable(graphics_client
src/card_adventure.cpp
src/card_fight.cpp
src/card_meeting.cpp
src/card_research.cpp
src/character.cpp
src/character_client.cpp
src/dice.cpp
src/fight.cpp
src/fight_two_player.cpp
src/game.cpp
src/game_client.cpp
src/fight_client.cpp
src/graphics.cpp
src/graphics_board.cpp
src/graphics_button.cpp
src/graphics_character_list_window.cpp
src/graphics_client.cpp
src/graphics_config.cpp
src/graphics_game_window.cpp
src/graphics_inventory_window.cpp
src/graphics_main.cpp
src/graphics_main_menu_window.cpp
src/graphics_fight_window.cpp
src/graphics_point.cpp
src/graphics_segment.cpp
src/graphics_settings.cpp
src/graphics_shapes.cpp
src/graphics_shop_window.cpp
src/graphics_texture.cpp
src/graphics_window.cpp
src/map.cpp
src/map_cell.cpp
src/map_client.cpp
src/product.cpp
tpl/SDL2/src/SDL2_framerate.cpp
tpl/SDL2/src/SDL2_gfxPrimitives.cpp
tpl/SDL2/src/SDL2_imageFilter.cpp
tpl/SDL2/src/SDL2_rotozoom.cpp)
target_link_libraries(graphics_client -lmingw32 -mwindows -mconsole -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf)
target_link_libraries(graphics_client ${Boost_LIBRARIES} ws2_32 wsock32)
# ===== GRAPHICS CLIENT ===== #
# ===== NETWORK SERVER ===== #
add_executable(network_server
src/card_adventure.cpp
src/card_fight.cpp
src/card_research.cpp
src/character.cpp
src/character_client.cpp
src/dice.cpp
src/fight.cpp
src/fight_two_player.cpp
src/game.cpp
src/game_client.cpp
src/fight_client.cpp
src/card_meeting.cpp
generators/generator_cards_fight.cpp
generators/generator_characters.cpp
src/map.cpp
src/map_cell.cpp
src/map_client.cpp
src/network_server.cpp
src/product.cpp
)
target_link_libraries(network_server ${Boost_LIBRARIES} ws2_32 wsock32)
# ===== NETWORK SERVER ===== #
# ===== NETWORK CLIENT ===== #
add_executable(network_client
src/card_adventure.cpp
src/card_fight.cpp
src/card_research.cpp
src/card_meeting.cpp
src/character.cpp
src/fight_client.cpp
src/character_client.cpp
src/dice.cpp
src/fight.cpp
src/game.cpp
src/game_client.cpp
generators/generator_cards_fight.cpp
generators/generator_characters.cpp
src/map.cpp
src/map_cell.cpp
src/map_client.cpp
src/product.cpp
src/fight_two_player.cpp
)
target_link_libraries(network_client ${Boost_LIBRARIES} ws2_32 wsock32)
# ===== NETWORK CLIENT ===== #
# ===== LOGICS ===== #
add_executable(${PROJECT_NAME}
src/card_adventure.cpp
src/card_research.cpp
src/character.cpp
src/dice.cpp
src/game.cpp
tpl/doctest/doctest_main.cpp
src/map.cpp
src/map_cell.cpp
src/game_client.cpp
src/fight_client.cpp
src/character_client.cpp
src/map_client.cpp
src/fight.cpp
src/card_fight.cpp
src/card_meeting.cpp
src/product.cpp
src/fight_two_player.cpp
#tests/test_fight.cpp
#tests/test_fight_two_player.cpp
tests/test_game.cpp
generators/generator_cards_fight.cpp
generators/generator_characters.cpp
generators/generator_cards_meeting.cpp
generators/generator_cards_research.cpp
generators/generator_products.cpp
generators/generator_map.cpp
)
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ws2_32 wsock32)
#target_link_libraries(${PROJECT_NAME} PRIVATE pqxx)
# ===== LOGICS ===== #