-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
29 lines (24 loc) · 956 Bytes
/
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
cmake_minimum_required(VERSION 3.14)
project(Poker)
set(CMAKE_CXX_STANDARD 17)
find_package(SFML 2.5 COMPONENTS network graphics window system REQUIRED)
find_package(Threads REQUIRED)
add_library(PokerLib SHARED
src/lib/Card.h
src/lib/Card.cpp
src/lib/Signals.h
src/lib/Signals.cpp
src/lib/Deck.h
src/lib/Deck.cpp
src/lib/Croupier.h
src/lib/Croupier.cpp
src/lib/Player.h
src/lib/Player.cpp
src/lib/Table.h
src/lib/Table.cpp)
add_executable(GameServer src/server.cpp)
target_include_directories(GameServer PUBLIC ${SFML_INCLUDE_DIR})
target_link_libraries(GameServer PokerLib sfml-system sfml-window sfml-graphics sfml-network)
add_executable(GameClient src/client.cpp)
target_include_directories(GameClient PUBLIC ${SFML_INCLUDE_DIR})
target_link_libraries(GameClient PokerLib sfml-system sfml-window sfml-graphics sfml-network ${CMAKE_THREAD_LIBS_INIT})