This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
63 lines (49 loc) · 1.55 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
58
59
60
61
62
63
cmake_minimum_required(VERSION 2.8.3)
project(occam_ros)
find_package(catkin
REQUIRED COMPONENTS
image_transport
roscpp
std_msgs
sensor_msgs
camera_info_manager)
set(ROS_BUILD_TYPE Release)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
find_package(PkgConfig REQUIRED)
pkg_check_modules(PC_LIBUSB libusb-1.0)
include_directories(${PC_LIBUSB_INCLUDE_DIRS})
link_directories(${PC_LIBUSB_LIBDIR})
catkin_package(
INCLUDE_DIRS
LIBRARIES occam
CATKIN_DEPENDS
image_transport
roscpp
std_msgs
sensor_msgs
camera_info_manager
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x -Wno-format-extra-args")
set(INDIGOSDK_PATH "indigosdk")
include_directories(
${catkin_INCLUDE_DIRS}
${INDIGOSDK_PATH}/include
)
add_subdirectory(${INDIGOSDK_PATH} indigosdk)
add_executable(occam_driver_node nodes/occam_driver_node.cpp)
target_link_libraries(occam_driver_node occam ${catkin_LIBRARIES})
add_executable(rectify nodes/rectify.cpp)
target_link_libraries(rectify occam ${catkin_LIBRARIES})
add_executable(cloud nodes/cloud.cpp)
target_link_libraries(cloud occam ${catkin_LIBRARIES})
add_executable(stitch nodes/stitch.cpp)
target_link_libraries(stitch occam ${catkin_LIBRARIES})
add_executable(imgproc nodes/imgproc.cpp)
target_link_libraries(imgproc occam ${catkin_LIBRARIES})
install(TARGETS occam_driver_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
install(DIRECTORY launch meshes urdf
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)