forked from chenxiaoqino/udp-image-streaming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
25 lines (20 loc) · 1.14 KB
/
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
cmake_minimum_required(VERSION 2.8)
project( lan_vid_pseudostream )
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} -pthread")
SET(OpenCV_DIR /home/chenyuan/3rdparty/opencv-3.2.0/build)
find_package( OpenCV REQUIRED )
add_executable( server Server.cpp PracticalSocket.cpp )
target_link_libraries( server ${OpenCV_LIBS} )
add_executable( client Client.cpp PracticalSocket.cpp )
target_link_libraries( client ${OpenCV_LIBS} )
add_executable( server-r Server-r.cpp PracticalSocket.cpp )
target_link_libraries( server-r ${OpenCV_LIBS} )
add_executable( client-r Client-r.cpp PracticalSocket.cpp )
target_link_libraries( client-r ${OpenCV_LIBS} )
set(BOOST_ROOT /home/chenyuan/3rdparty/boost_1_59_0/build)
find_package(Boost COMPONENTS system filesystem regex REQUIRED)
include_directories(${CMAKE_SOURCE_DIR} ${Boost_INCLUDE_DIRS} 3rdparty/include)
link_directories(/home/chenyuan/3rdparty/openpose/build/src/openpose)
link_directories(${CMAKE_SOURCE_DIR}/3rdparty/lib)
add_executable( server-d Server-D.cpp PracticalSocket.cpp ServDelegate.cpp Machine.cpp WsHub.cpp)
target_link_libraries( server-d ${OpenCV_LIBS} openpose gflags ${Boost_LIBRARIES} uWS ssl z)