-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
37 lines (28 loc) · 897 Bytes
/
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
cmake_minimum_required(VERSION 2.6)
project(pcl_test)
set(CMAKE_CXX_STANDARD 11)
# PCL
find_package(PCL REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
#OpenCV
find_package( OpenCV REQUIRED )
#子模块
add_subdirectory(devices)
add_subdirectory(process)
add_subdirectory(common)
aux_source_directory(display_map DIR_DISPALY)
set(OTHER_LIBRARIES common devices process)
include_directories(${PROJECT_SOURCE_DIR}/devices)
include_directories(${PROJECT_SOURCE_DIR}/common)
include_directories(${PROJECT_SOURCE_DIR}/process)
link_directories(${PROJECT_SOURCE_DIR}/build/lib)
# add_definitions(-g)
add_executable(main main.cpp ${DIR_DISPALY})
target_link_libraries (main
${OTHER_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_LIBS}
pthread
)