Skip to content
Snippets Groups Projects
Commit 8f4e8f6b authored by Mirko Wächter's avatar Mirko Wächter
Browse files

rbdl cmake fix

parent e931604c
No related branches found
No related tags found
No related merge requests found
......@@ -15,14 +15,9 @@ target_compile_options(VirtualRobot PUBLIC ${Simox_OS_compile_options})
#######################################################################
### RBDL
if (Simox_USE_RBDL)
FIND_PACKAGE (RBDL)
if (RBDL_FOUND)
MESSAGE(STATUS "RBDL found at: ${RBDL_INCLUDE_DIR}")
target_include_directories(VirtualRobot PUBLIC ${RBDL_INCLUDE_DIR})
target_link_libraries(VirtualRobot PUBLIC ${RBDL_LIBRARIES})
else ()
MESSAGE(STATUS "RBDL not found!")
endif ()
# target_include_directories(VirtualRobot PUBLIC "../3rdParty/rbdl/src")
# target_include_directories(VirtualRobot PUBLIC "../3rdParty/rbdl/include")
target_link_libraries(VirtualRobot LINK_PUBLIC rbdl)
endif()
#### NLOPT
......@@ -174,10 +169,6 @@ endif()
MESSAGE (STATUS "\n***** CONFIGURING Simox project VirtualRobot *****")
if (Simox_USE_RBDL)
FIND_PACKAGE (RBDL)
endif()
if (Simox_USE_NLOPT)
FIND_PACKAGE (NLOPT)
endif()
......@@ -523,7 +514,7 @@ Util/json/eigen_conversion.h
Util/json/eigen_conversion.hpp
)
if (Simox_USE_RBDL AND RBDL_FOUND)
if (Simox_USE_RBDL)
SET(SOURCES
${SOURCES}
Dynamics/dynamics.cpp
......
......@@ -2,7 +2,7 @@
FIND_PACKAGE (RBDL)
FIND_PACKAGE (NLOPT)
if (Simox_USE_RBDL AND RBDL_FOUND)
if (Simox_USE_RBDL)
ADD_SUBDIRECTORY(InverseDynamics)
endif ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment