Skip to content

Commit

Permalink
upgrade to rmagine version 2.2.1. Integrated new component find syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Oct 8, 2023
1 parent 1504d8d commit e35103c
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ find_package(catkin REQUIRED COMPONENTS

find_package(gazebo REQUIRED)

find_package(rmagine REQUIRED)
find_package(rmagine 2.2.1...
COMPONENTS
core
OPTIONAL_COMPONENTS
embree
cuda
optix
)


###################################
## catkin specific configuration ##
Expand Down Expand Up @@ -76,7 +84,7 @@ add_library(rmagine_gazebo_helper SHARED

target_link_libraries(rmagine_gazebo_helper
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::core
)


Expand All @@ -86,7 +94,7 @@ add_library(rmagine_embree_spherical_gzplugin SHARED

target_link_libraries(rmagine_embree_spherical_gzplugin
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::embree
)

add_library(rmagine_embree_sensors_gzregister SHARED
Expand All @@ -96,7 +104,7 @@ add_library(rmagine_embree_sensors_gzregister SHARED
target_link_libraries(rmagine_embree_sensors_gzregister
rmagine_embree_spherical_gzplugin
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::embree
)

add_library(rmagine_embree_map_gzplugin SHARED
Expand All @@ -107,7 +115,7 @@ add_library(rmagine_embree_map_gzplugin SHARED
target_link_libraries(rmagine_embree_map_gzplugin
rmagine_gazebo_helper
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::embree
)

# ROS Gazebo plugins
Expand All @@ -118,7 +126,7 @@ target_link_libraries(rmagine_embree_ros_gzplugin
rmagine_embree_spherical_gzplugin
${catkin_LIBRARIES}
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::embree
)

install(
Expand All @@ -132,7 +140,9 @@ install(


### OPTIX
if(${rmagine_optix_FOUND})
if(TARGET rmagine::optix)

message(WARNING "BUILD OPTIX STUFF!")

#### ROS-less Gazebo plugins
add_library(rmagine_optix_spherical_gzplugin SHARED
Expand All @@ -141,7 +151,7 @@ add_library(rmagine_optix_spherical_gzplugin SHARED

target_link_libraries(rmagine_optix_spherical_gzplugin
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::optix
)

add_library(rmagine_optix_sensors_gzregister SHARED
Expand All @@ -151,7 +161,7 @@ add_library(rmagine_optix_sensors_gzregister SHARED
target_link_libraries(rmagine_optix_sensors_gzregister
rmagine_optix_spherical_gzplugin
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::optix
)

add_library(rmagine_optix_map_gzplugin SHARED
Expand All @@ -163,7 +173,7 @@ target_link_libraries(rmagine_optix_map_gzplugin
rmagine_optix_spherical_gzplugin
rmagine_gazebo_helper
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::optix
)

# ROS Gazebo plugins
Expand All @@ -174,7 +184,7 @@ target_link_libraries(rmagine_optix_ros_gzplugin
rmagine_optix_spherical_gzplugin
${catkin_LIBRARIES}
${GAZEBO_LIBRARIES}
${rmagine_LIBRARIES}
rmagine::optix
)

install(
Expand All @@ -186,4 +196,4 @@ install(
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)

endif(${rmagine_optix_FOUND})
endif(TARGET rmagine::optix)

0 comments on commit e35103c

Please sign in to comment.