-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
70 lines (64 loc) · 1.36 KB
/
CMakeLists.txt
File metadata and controls
70 lines (64 loc) · 1.36 KB
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
cmake_minimum_required (VERSION 3.9)
project (owopcpp
VERSION 1.0.0
DESCRIPTION "C++ library for owop api"
LANGUAGES CXX
)
set (CMAKE_CXX_STANDARD 20)
add_subdirectory(vendor/parallel-hashmap)
add_subdirectory(vendor/websocketpp)
add_subdirectory(vendor/fmt)
set(owopcpp_sources
src/server.cpp
src/ipinfo.cpp
src/connection.cpp
src/player.cpp
src/world.cpp
src/worldmanager.cpp
src/uuid.cpp
src/chunksystem.cpp
src/chunk.cpp
)
set(owopcpp_headers
include/owopcpp.h
include/server.h
include/ipinfo.h
include/connection.h
include/player.h
include/world.h
include/worldmanager.h
include/uuid.h
include/chunksystem.h
include/chunk.h
include/serialization.h
include/pixel.h
include/opcodes.h
include/netconv.h
include/constants.h
include/tooltype.h
include/playerrank.h
include/constexpr_math.h
include/networking_includes.h
)
if (OWOP_SHARED)
add_library (owopcpp SHARED
${owopcpp_sources}
${owopcpp_headers}
)
else ()
add_library (owopcpp STATIC
${owopcpp_sources}
${owopcpp_headers}
)
endif ()
target_include_directories(owopcpp PRIVATE
vendor/asio/asio/include
vendor/parallel-hashmap
vendor/fmt/include
vendor/websocketpp
include
)
target_link_libraries(owopcpp PRIVATE
pthread
fmt
)