Skip to content
Snippets Groups Projects
Commit bd06453c authored by vahrenkamp's avatar vahrenkamp
Browse files

fixed urdf lib search

git-svn-id: http://svn.code.sf.net/p/simox/code/trunk@665 042f3d55-54a8-47e9-b7fb-15903f145c44
parent e43d41b8
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,15 @@
SET (URDF_FOUND FALSE)
FIND_PATH(URDFDOM_INCLUDE_DIRS urdfdom_model/model.h "$ENV{URDFDIR}/include" "$ENV{URDF_DIR}/include")
FIND_PATH(URDFDOM_INCLUDE_DIRS urdfdom_model/model.h "$ENV{URDFDIR}/include" "$ENV{URDF_DIR}/include" "/usr/include")
IF (NOT URDFDOM_INCLUDE_DIRS)
FIND_PATH(URDFDOM_INCLUDE_DIRS urdf_model/model.h "$ENV{URDFDIR}/include" "$ENV{URDF_DIR}/include" "/usr/include")
endif()
FIND_PATH(URDFDOM_PARSER_INCLUDE_DIRS urdf_parser/urdf_parser.h "$ENV{URDFDIR}/include" "$ENV{URDF_DIR}/include")
FIND_LIBRARY(URDFDOM_LIBRARIES urdf "$ENV{URDFDIR}/lib" "$ENV{URDF_DIR}/lib")
FIND_LIBRARY(URDFDOM_LIBRARIES urdf "$ENV{URDFDIR}/lib" "$ENV{URDF_DIR}/lib" "/usr/lib" "/usr/lib/x86_64-linux-gnu")
IF (NOT URDFDOM_LIBRARIES)
FIND_LIBRARY(URDFDOM_LIBRARIES urdfdom_model "$ENV{URDFDIR}/lib" "$ENV{URDF_DIR}/lib" "/usr/lib" "/usr/lib/x86_64-linux-gnu")
endif()
IF (URDFDOM_INCLUDE_DIRS AND URDFDOM_PARSER_INCLUDE_DIRS AND URDFDOM_LIBRARIES)
......@@ -27,4 +33,4 @@ MARK_AS_ADVANCED (
URDFDOM_PARSER_INCLUDE_DIRS
URDFDOM_LIBRARIES
)
\ No newline at end of file
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