-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
58 lines (44 loc) · 966 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cmake_minimum_required(VERSION 2.8)
project(Pandora)
find_package( Boost REQUIRED )
find_package( PCL REQUIRED COMPONENTS common )
find_package( OpenCV REQUIRED )
set (CMAKE_CXX_FLAGS "-fPIC --std=c++11")
add_subdirectory(src/Pandar40P)
include_directories(
.
include
src/Pandar40P/include
${Boost_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_library( ${PROJECT_NAME} SHARED
src/pandora.cc
src/pandora_client.c
src/pandora_camera.cc
src/util.c
src/tcp_command_client.c
)
target_link_libraries(${PROJECT_NAME}
Pandar40P
${Boost_LIBRARIES}
${PCL_IO_LIBRARIES}
${OpenCV_LIBS}
yaml-cpp
jpeg
)
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
add_executable(pandora_test
test/test.cc
)
target_link_libraries(pandora_test
Pandar40P
${PROJECT_NAME}
${Boost_LIBRARIES}
${PCL_IO_LIBRARIES}
${OpenCV_LIBS}
yaml-cpp
jpeg
)
endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})