Skip to content

Commit

Permalink
begin OpenraveCollisionStop as copy of OpenraveYarpPluginLoader, #82
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Mar 12, 2018
1 parent 94576dc commit a61a92a
Show file tree
Hide file tree
Showing 3 changed files with 392 additions and 0 deletions.
1 change: 1 addition & 0 deletions libraries/OpenravePlugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Author: Juan G. Victores, Raul Fernandez-Fernandez, Raul de Santos Rico
# CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT

add_subdirectory(OpenraveCollisionStop)
add_subdirectory(OpenraveYarpCoupled)
add_subdirectory(OpenraveYarpForceEstimator)
add_subdirectory(OpenraveYarpPaintSquares)
Expand Down
32 changes: 32 additions & 0 deletions libraries/OpenravePlugins/OpenraveCollisionStop/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated by Juan G Victores 2013
# Thanks Rosen Diankov for all OpenRAVE developments

option(ENABLE_OpenraveCollisionStop "Enable/disable OpenraveCollisionStop" ON)

if(ENABLE_OpenraveCollisionStop)

find_package(OpenRAVE REQUIRED)
find_package(YARP REQUIRED)
find_package(Boost ${OpenRAVE_Boost_VERSION} EXACT COMPONENTS iostreams python thread)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${OpenRAVE_INCLUDE_DIRS}
${YARP_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS})

link_directories(${OpenRAVE_LIBRARY_DIRS}
${Boost_LIBRARY_DIRS})

add_library(OpenraveCollisionStop SHARED OpenraveCollisionStop.cpp)

set_target_properties(OpenraveCollisionStop PROPERTIES COMPILE_FLAGS "${OpenRAVE_CXX_FLAGS}"
LINK_FLAGS "${OpenRAVE_LINK_FLAGS}")

target_link_libraries(OpenraveCollisionStop ${YARP_LIBRARIES}
${OpenRAVE_LIBRARIES})

include(InstallOpenravePlugin)

install_openrave_plugin(OpenraveCollisionStop)

endif()
Loading

0 comments on commit a61a92a

Please sign in to comment.