~hrg/hrg-packaging/gazebo-ros-pkgs

« back to all changes in this revision

Viewing changes to gazebo_plugins/CMakeLists.txt

  • Committer: GitHub
  • Author(s): Jose Luis Rivero
  • Date: 2017-03-03 18:56:20 UTC
  • Revision ID: git-v1:6c9786dbbaf65f345b52cfb83414323c09e32f65
Revert catkin warnings to fix regressions (problems with catkin -lpthreads errors)

For reference and reasons, please check:
https://discourse.ros.org/t/need-to-sync-new-release-of-rqt-topic-indigo-jade-kinetic/1410/4

* Revert "Fix gazebo catkin warning, cleanup CMakeLists (#537)"
This reverts commit 5a0305fcb97864b66bc2e587fc0564435b4f2034.

* Revert "Fix gazebo and sdformat catkin warnings"
This reverts commit 11f95d25dcd32faccd2401d45c722f7794c7542c.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
cmake_minimum_required(VERSION 2.8.3)
2
2
project(gazebo_plugins)
3
3
 
4
 
option(ENABLE_DISPLAY_TESTS "Enable the building of tests that requires a display" OFF)
5
 
 
6
4
find_package(catkin REQUIRED COMPONENTS 
7
 
  message_generation
8
 
  gazebo_msgs
9
 
  roscpp
10
 
  rospy
11
 
  nodelet
12
 
  angles
13
 
  std_srvs
14
 
  geometry_msgs
15
 
  sensor_msgs
16
 
  nav_msgs
17
 
  urdf
18
 
  tf
19
 
  tf2_ros
20
 
  dynamic_reconfigure
21
 
  rosgraph_msgs
22
 
  trajectory_msgs
23
 
  image_transport
 
5
  message_generation 
 
6
  gazebo_msgs 
 
7
  roscpp 
 
8
  rospy 
 
9
  nodelet 
 
10
  angles 
 
11
  std_srvs 
 
12
  geometry_msgs 
 
13
  sensor_msgs 
 
14
  nav_msgs 
 
15
  urdf 
 
16
  tf 
 
17
  tf2_ros 
 
18
  dynamic_reconfigure 
 
19
  rosgraph_msgs 
 
20
  trajectory_msgs 
 
21
  image_transport 
24
22
  rosconsole
25
23
  cv_bridge
26
24
  polled_camera
40
38
endif()
41
39
 
42
40
# Depend on system install of Gazebo and SDFormat
43
 
find_package(GAZEBO REQUIRED)
44
 
find_package(SDFormat REQUIRED)
 
41
find_package(gazebo REQUIRED)
45
42
find_package(Boost REQUIRED COMPONENTS thread)
46
43
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
47
44
 
77
74
  ${catkin_LIBRARY_DIRS}
78
75
)
79
76
 
 
77
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
 
78
 
80
79
if (NOT GAZEBO_VERSION VERSION_LESS 6.0)
81
80
  catkin_package(  INCLUDE_DIRS include LIBRARIES gazebo_ros_elevator)
82
81
endif()
87
86
 
88
87
catkin_package(
89
88
  INCLUDE_DIRS include
90
 
  LIBRARIES
91
 
  vision_reconfigure
92
 
  gazebo_ros_utils
93
 
  gazebo_ros_camera_utils
94
 
  gazebo_ros_camera
95
 
  gazebo_ros_multicamera
96
 
  gazebo_ros_depth_camera
97
 
  gazebo_ros_openni_kinect
98
 
  gazebo_ros_gpu_laser
99
 
  gazebo_ros_laser
100
 
  gazebo_ros_block_laser
101
 
  gazebo_ros_p3d
102
 
  gazebo_ros_imu
103
 
  gazebo_ros_f3d
 
89
  LIBRARIES 
 
90
  vision_reconfigure 
 
91
  gazebo_ros_utils 
 
92
  gazebo_ros_camera_utils 
 
93
  gazebo_ros_camera 
 
94
  gazebo_ros_multicamera 
 
95
  gazebo_ros_depth_camera 
 
96
  gazebo_ros_openni_kinect 
 
97
  gazebo_ros_gpu_laser 
 
98
  gazebo_ros_laser 
 
99
  gazebo_ros_block_laser 
 
100
  gazebo_ros_p3d 
 
101
  gazebo_ros_imu 
 
102
  gazebo_ros_f3d 
104
103
  gazebo_ros_ft_sensor
105
 
  gazebo_ros_bumper
106
 
  gazebo_ros_template
107
 
  gazebo_ros_projector
108
 
  gazebo_ros_prosilica
109
 
  gazebo_ros_force
110
 
  gazebo_ros_joint_trajectory
111
 
  gazebo_ros_joint_state_publisher
 
104
  gazebo_ros_bumper 
 
105
  gazebo_ros_template 
 
106
  gazebo_ros_projector 
 
107
  gazebo_ros_prosilica 
 
108
  gazebo_ros_force 
 
109
  gazebo_ros_joint_trajectory 
 
110
  gazebo_ros_joint_state_publisher 
112
111
  gazebo_ros_joint_pose_trajectory
113
112
  gazebo_ros_diff_drive
114
113
  gazebo_ros_tricycle_drive
116
115
  gazebo_ros_video
117
116
  gazebo_ros_planar_move
118
117
  gazebo_ros_vacuum_gripper
119
 
 
120
 
  CATKIN_DEPENDS
121
 
  message_generation
122
 
  gazebo_msgs
123
 
  roscpp
124
 
  rospy
125
 
  nodelet
126
 
  angles
127
 
  std_srvs
128
 
  geometry_msgs
129
 
  sensor_msgs
130
 
  nav_msgs
131
 
  urdf
132
 
  tf
 
118
  
 
119
  CATKIN_DEPENDS 
 
120
  message_generation 
 
121
  gazebo_msgs 
 
122
  roscpp 
 
123
  rospy 
 
124
  nodelet 
 
125
  angles 
 
126
  std_srvs 
 
127
  geometry_msgs 
 
128
  sensor_msgs 
 
129
  nav_msgs 
 
130
  urdf 
 
131
  tf 
133
132
  tf2_ros
134
 
  dynamic_reconfigure
135
 
  rosgraph_msgs
136
 
  trajectory_msgs
137
 
  image_transport
 
133
  dynamic_reconfigure 
 
134
  rosgraph_msgs 
 
135
  trajectory_msgs 
 
136
  image_transport 
138
137
  rosconsole
139
138
  camera_info_manager
140
139
  std_msgs
141
 
  DEPENDS
142
 
    GAZEBO
143
 
    SDFormat
 
140
  DEPENDS 
 
141
    gazebo 
 
142
    SDF
144
143
  )
145
144
add_dependencies(${PROJECT_NAME}_gencfg ${catkin_EXPORTED_TARGETS})
146
145
 
289
288
add_library(gazebo_ros_template src/gazebo_ros_template.cpp)
290
289
target_link_libraries(gazebo_ros_template ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES})
291
290
 
292
 
install(TARGETS
293
 
  hokuyo_node
294
 
  vision_reconfigure
 
291
install(TARGETS 
 
292
  hokuyo_node 
 
293
  vision_reconfigure 
295
294
  camera_synchronizer
296
295
  gazebo_ros_utils
297
296
  gazebo_ros_camera_utils
322
321
  gazebo_ros_video
323
322
  gazebo_ros_planar_move
324
323
  gazebo_ros_vacuum_gripper
325
 
  pub_joint_trajectory_test
 
324
  pub_joint_trajectory_test  
326
325
  gazebo_ros_gpu_laser
327
326
  gazebo_ros_range
328
327
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
361
360
  )
362
361
 
363
362
# Tests
364
 
# These need to be run with -j1 flag because gazebo can't be run
365
 
# in parallel.
366
363
if (CATKIN_ENABLE_TESTING)
367
364
  find_package(rostest REQUIRED)
368
365
  add_rostest_gtest(set_model_state-test
369
 
                    test/set_model_state_test/set_model_state_test.test
 
366
                    test/set_model_state_test/set_model_state_test.test 
370
367
                    test/set_model_state_test/set_model_state_test.cpp)
371
368
  add_rostest(test/range/range_plugin.test)
372
369
  target_link_libraries(set_model_state-test ${catkin_LIBRARIES})
373
 
 
374
 
  if (ENABLE_DISPLAY_TESTS)
375
 
    add_rostest_gtest(depth_camera-test
376
 
                      test/camera/depth_camera.test
377
 
                      test/camera/depth_camera.cpp)
378
 
    target_link_libraries(depth_camera-test ${catkin_LIBRARIES})
379
 
    add_rostest_gtest(multicamera-test
380
 
                      test/camera/multicamera.test
381
 
                      test/camera/multicamera.cpp)
382
 
    target_link_libraries(multicamera-test ${catkin_LIBRARIES})
383
 
    add_rostest_gtest(camera-test
384
 
                      test/camera/camera.test
385
 
                      test/camera/camera.cpp)
386
 
    target_link_libraries(camera-test ${catkin_LIBRARIES})
387
 
  endif()
388
370
endif()