-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
40 lines (37 loc) · 820 Bytes
/
CMakeLists.txt
File metadata and controls
40 lines (37 loc) · 820 Bytes
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
cmake_minimum_required(VERSION 3.5)
project(SBO)
add_executable(sbo
src/main.cpp
src/game.cpp
src/networking_system.cpp
src/game_client.cpp
src/entity.cpp
src/event_handler_system.cpp
src/position_system.cpp
src/position_component.cpp)
target_include_directories(sbo PUBLIC
ext/websocketpp
ext/nlohmann/single_include)
# set_target_properties(sbo
# PROPERTIES CXX_STANDARD 17)
if (NOT MSVC)
set_target_properties(sbo
PROPERTIES CXX_STANDARD 17)
target_link_libraries(sbo
ws2_32
boost_system-mt
wsock32)
target_compile_options(sbo PRIVATE
"$<$<CONFIG:DEBUG>:-Wa,-mbig-obj>")
endif ()
if (MSVC)
set_target_properties(sbo
PROPERTIES CXX_STANDARD 14)
find_package(Boost REQUIRED COMPONENTS
system
random)
target_link_libraries(sbo
Boost::boost
Boost::system
Boost::random)
endif ()