CMakeLists.txt 598 Bytes
Newer Older
Hubert Denkmair's avatar
Hubert Denkmair committed
1 2 3 4 5 6 7 8
set(PROJECT_NAME RelayServer)
project (${PROJECT_NAME} VERSION 0.1 LANGUAGES CXX)

find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})

include_directories(
	${PROJECT_NAME}
Hubert Denkmair's avatar
Hubert Denkmair committed
9
	../lib/uWebSockets/src
Hubert Denkmair's avatar
Hubert Denkmair committed
10 11
	../lib/msgpack-c/include
	../lib/nlohmann/single_include
Hubert Denkmair's avatar
Hubert Denkmair committed
12 13 14 15 16 17
)

add_executable(
	${PROJECT_NAME}
	main.cpp
	RelayServer.h RelayServer.cpp
Hubert Denkmair's avatar
Hubert Denkmair committed
18
	TcpProtocol.h TcpProtocol.cpp
Hubert Denkmair's avatar
Hubert Denkmair committed
19 20
	MsgPackProtocol.h MsgPackProtocol.cpp
	JsonProtocol.h JsonProtocol.cpp
21
	WebsocketConnection.h WebsocketConnection.cpp
Hubert Denkmair's avatar
Hubert Denkmair committed
22 23 24 25 26
)

target_link_libraries(
	${PROJECT_NAME}
	tcpserver
Hubert Denkmair's avatar
Hubert Denkmair committed
27 28 29 30 31
	uWebSockets
	pthread
	ssl
	crypto
	z
Hubert Denkmair's avatar
Hubert Denkmair committed
32
)