-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
58 lines (44 loc) · 1.8 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
53
54
55
56
57
cmake_minimum_required(VERSION 3.0.2)
project(lidar_curb_detection)
SET(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_STANDARD 11)
set(3rdparty /home/zyl/3rdparty/echiev/linux-x86-64)
set(OpenCV_DIR ${3rdparty}/opencv/opencv_3.3/share/OpenCV)
find_package(OpenCV REQUIRED)
# set(Eigen3_DIR "/home/zyl/3rdparty/eigen-3.3.7/cmake")
# find_package(Eigen3 REQUIRED)
find_package(VTK)
find_package(PCL 1.8 COMPONENTS common visualization io surface segmentation REQUIRED)
add_definitions(${PCL_DEFINITIONS})
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(
# ${3rdparty}/ls_driver/Include
# ${3rdparty}/comm_2.7.1/include
# ${3rdparty}/libconfig/include
# ${3rdparty}/ulog/include
${3rdparty}/comm/comm_2.6.2/include
${3rdparty}/libconfig/include
${3rdparty}/ulog/include
${3rdparty}/eigen/include/eigen3
${3rdparty}/opencv/opencv_3.3/include
${3rdparty}/opencv/opencv_3.3/include/opencv
${3rdparty}/opencv/opencv_3.3/include/opencv2
./include
./common
./ls_driver/Include
# ${EIGEN3_INCLUDE_DIR}
)
# LINK_DIRECTORIES("${3rdparty}/comm_2.7.1/lib")
LINK_DIRECTORIES("${3rdparty}/comm/comm_2.6.2/lib")
LINK_DIRECTORIES("${3rdparty}/libconfig/lib")
LINK_DIRECTORIES("${3rdparty}/ulog/lib")
LINK_DIRECTORIES("${3rdparty}/opencv/opencv_3.3/lib")
LINK_LIBRARIES("${3rdparty}/opencv/opencv_3.3/lib/libopencv_core.so" )
# AUX_SOURCE_DIRECTORY(${3rdparty}/ls_driver/Include LS)
AUX_SOURCE_DIRECTORY(./ls_driver/Include LS)
AUX_SOURCE_DIRECTORY(./common COMMON)
AUX_SOURCE_DIRECTORY(./include SRC)
SET(COMM ${3rdparty}/comm/comm_2.6.2/lib/libcomm.so)
add_executable(lidar_curb_detection src/main.cpp ${LS} ${SRC} ${COMMON} )
target_link_libraries(lidar_curb_detection pthread ${OpenCV_LIBS} ${PCL_LIBRARIES} config ulog ${COMM} )