-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (24 loc) · 1.66 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
cmake_minimum_required(VERSION 3.22)
project(super_hse)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
find_package(LDtkLoader 1.5.2)
find_package(SQLite3)
set(SRC_LIST src/main.cpp src/sql.cpp src/game.cpp src/scene.cpp src/level_map_scene.cpp src/wardrobe_scene.cpp
src/main_menu_scene.cpp src/level_scene.cpp src/player.cpp src/Level.cpp
src/TileMap.cpp src/hse_utils.cpp src/coin.cpp src/level_icon.cpp src/skin_icon.cpp src/authentication_scene.cpp
src/login_scene.cpp src/register_scene.cpp src/enemy.cpp src/lose_scene.cpp src/win_scene.cpp
src/input_box.cpp src/multiplayer_scene.cpp network/game_client.cpp src/level_entities.cpp src/brick.cpp src/level_info.cpp src/multi_connect_scene.cpp src/messages.cpp src/player_icon.cpp src/hse_texture.cpp src/hse_exceptions.cpp)
include_directories(super_hse include)
include_directories(../cryptopp-master)
set(SRC_LIST_SERVER src/sql.cpp src/scene.cpp src/coin.cpp src/enemy.cpp
network/game_client.cpp src/level_entities.cpp src/brick.cpp src/level_info.cpp network/game_server.cpp network/Server.cpp src/messages.cpp src/player_icon.cpp src/hse_texture.cpp src/hse_exceptions.cpp network/server_info_scene.cpp)
link_directories(${CMAKE_SOURCE_DIR}/lib)
add_executable(super_hse ${SRC_LIST})
target_link_libraries(super_hse LDtkLoader sfml-graphics sfml-window sfml-system sfml-audio sfml-network sqlite3 cryptopp)
include_directories(server include)
add_executable(server ${SRC_LIST_SERVER})
target_link_libraries(server LDtkLoader sfml-system sfml-graphics sfml-network sfml-audio sfml-window sqlite3 cryptopp)
if (SQLITE3_FOUND)
include_directories(${SQLITE3_INCLUDE_DIRS})
endif (SQLITE3_FOUND)