Skip to content

Commit

Permalink
init OpenraveYarpIroning as copy of ORYPS
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Sep 5, 2023
1 parent 72a5a0c commit 5cdbc1a
Show file tree
Hide file tree
Showing 3 changed files with 493 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/OpenravePlugins/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
add_subdirectory(OpenraveForceSensor)
add_subdirectory(OpenraveYarpForceEstimator)
add_subdirectory(OpenraveYarpIroning)
add_subdirectory(OpenraveYarpPaintSquares)
add_subdirectory(OpenraveYarpPlanner)
add_subdirectory(OpenraveYarpPluginLoader)
Expand Down
27 changes: 27 additions & 0 deletions libraries/OpenravePlugins/OpenraveYarpIroning/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
option(ENABLE_OpenraveYarpIroning "Enable/disable OpenraveYarpIroning" ON)

if(ENABLE_OpenraveYarpIroning)

add_library(OpenraveYarpIroning MODULE OpenraveYarpIroning.cpp)

target_link_libraries(OpenraveYarpIroning YARP::YARP_os
YARP::YARP_init
Boost::boost)

if(OpenRAVE_VERSION VERSION_GREATER_EQUAL 0.114)
target_link_libraries(OpenraveYarpIroning OpenRAVE::libopenrave)
else()
link_directories(${OpenRAVE_LIBRARY_DIRS})

target_link_libraries(OpenraveYarpIroning PUBLIC ${OpenRAVE_LIBRARIES})

set_target_properties(OpenraveYarpIroning PROPERTIES COMPILE_OPTIONS "${OpenRAVE_CXX_FLAGS}"
LINK_FLAGS "${OpenRAVE_LINK_FLAGS}")

target_include_directories(OpenraveYarpIroning PRIVATE ${OpenRAVE_INCLUDE_DIRS})
endif()

include(InstallOpenravePlugin)
install_openrave_plugin(OpenraveYarpIroning)

endif()
Loading

0 comments on commit 5cdbc1a

Please sign in to comment.