-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
87 lines (77 loc) · 2.11 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
cmake_minimum_required(VERSION 3.5)
project (mecheye_ros_interface)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARDREQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/jsoncpp")
set(CMAKE_VERBOSE_MAKEFILE on)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED)
find_package(PkgConfig REQUIRED)
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS cv_bridge image_transport roscpp rospy std_msgs genmsg sensor_msgs tf message_generation)
pkg_check_modules(JSONCPP REQUIRED jsoncpp)
add_service_files(
DIRECTORY
srv
FILES
SetCurrentUserSet.srv
SaveAllSettingsToUserSets.srv
AddUserSet.srv
CaptureColorImage.srv
CaptureStereoColorImages.srv
CaptureTexturedPointCloud.srv
CaptureDepthMap.srv
CapturePointCloud.srv
DeleteUserSet.srv
DeviceInfo.srv
GetAllUserSets.srv
GetCurrentUserSet.srv
SetIntParameter.srv
GetIntParameter.srv
SetRangeParameter.srv
GetRangeParameter.srv
SetBoolParameter.srv
GetBoolParameter.srv
SetEnumParameter.srv
GetEnumParameter.srv
SetFloatParameter.srv
GetFloatParameter.srv
SetFloatArrayParameter.srv
GetFloatArrayParameter.srv
SetROIParameter.srv
GetROIParameter.srv
)
generate_messages(
DEPENDENCIES
std_msgs
sensor_msgs
)
## Declare a catkin package
catkin_package(CATKIN_DEPENDS std_msgs roscpp message_runtime)
include_directories(
include
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${EIGEN_INCLUDE_DIRS}
${BOOST_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
/opt/mech-mind/mech-eye-sdk/include
)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
link_directories(/opt/mech-mind/mech-eye-sdk/lib)
aux_source_directory(src SRC_LIST)
add_executable(start ${SRC_LIST})
add_dependencies(start mecheye_ros_interface_generate_messages_cpp ${catkin_EXPORTED_TARGETS})
target_link_libraries(start
${PCL_LIBRARIES}
${OpenCV_LIBRARIES}
${ZMQ_LIBRARIES}
${EIGEN_LIBRARIES}
${BOOST_LIBRARIES}
${catkin_LIBRARIES}
${JSONCPP_LIBRARIES}
MechEyeApi
)