CMakeLists.txt 527 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 10
	../lib/uWebSockets/src
	../lib/msgpack-c/include/
Hubert Denkmair's avatar
Hubert Denkmair committed
11 12 13 14 15 16
)

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

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