-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
52 lines (44 loc) · 1.1 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
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
cmake_minimum_required(VERSION 2.8.3)
project(PandarSwiftSDK)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package( Boost REQUIRED COMPONENTS thread)
find_package( PCL REQUIRED COMPONENTS common )
find_package(OpenSSL REQUIRED)
SET(CMAKE_BUILD_TYPE "Release")
include_directories(
.
include
src/taskflow
${Boost_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR}
)
add_library( ${PROJECT_NAME} SHARED
src/input.cc
src/laser_ts.cpp
src/pandarSwiftDriver.cc
src/pandarSwiftSDK.cc
src/platUtil.cc
src/tcp_command_client.c
src/util.c
src/wrapper.cc
)
target_link_libraries(${PROJECT_NAME}
${Boost_LIBRARIES}
${PCL_IO_LIBRARIES}
${OPENSSL_LIBRARIES}
Boost::thread
pcap
)
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
find_package(PCL REQUIRED)
add_executable(PandarSwiftTest
test/test.cc
)
target_link_libraries(PandarSwiftTest
${PROJECT_NAME}
${Boost_LIBRARIES}
${PCL_IO_LIBRARIES}
)
endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})