diff --git a/collada_urdf/CMakeLists.txt b/collada_urdf/CMakeLists.txt
index 9d0e228..05217be 100644
--- a/collada_urdf/CMakeLists.txt
+++ b/collada_urdf/CMakeLists.txt
@@ -65,9 +65,11 @@ target_link_libraries(collada_to_urdf ${ASSIMP_LIBRARIES} ${catkin_LIBRARIES} ${
set_target_properties(collada_to_urdf PROPERTIES COMPILER_FLAGS "${ASSIMP_CXX_FLAGS} ${ASSIMP_CFLAGS_OTHER}")
set_target_properties(collada_to_urdf PROPERTIES LINK_FLAGS "${ASSIMP_LINK_FLAGS}")
-catkin_add_gtest(test_collada_writer test/test_collada_urdf.cpp)
-target_link_libraries(test_collada_writer ${PROJECT_NAME} ${catkin_LIBRARIES} ${COLLADA_DOM_LIBRARIES}
- ${Boost_LIBRARIES})
+if(CATKIN_ENABLE_TESTING)
+ catkin_add_gtest(test_collada_writer test/test_collada_urdf.cpp)
+ target_link_libraries(test_collada_writer ${PROJECT_NAME} ${catkin_LIBRARIES} ${COLLADA_DOM_LIBRARIES}
+ ${Boost_LIBRARIES})
+endif()
install(TARGETS ${PROJECT_NAME} urdf_to_collada collada_to_urdf
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
diff --git a/collada_urdf/package.xml b/collada_urdf/package.xml
index a846861..8cde4fe 100644
--- a/collada_urdf/package.xml
+++ b/collada_urdf/package.xml
@@ -16,7 +16,7 @@
http://ros.org/wiki/collada_urdf
- catkin
+ catkin
angles
assimp
diff --git a/kdl_parser/CMakeLists.txt b/kdl_parser/CMakeLists.txt
index 7522ac3..3b8ff1d 100644
--- a/kdl_parser/CMakeLists.txt
+++ b/kdl_parser/CMakeLists.txt
@@ -31,8 +31,10 @@ target_link_libraries(${PROJECT_NAME}
add_executable(check_kdl_parser src/check_kdl_parser.cpp )
target_link_libraries(check_kdl_parser ${PROJECT_NAME})
-catkin_add_gtest(test_kdl_parser test/test_kdl_parser.cpp )
-target_link_libraries(test_kdl_parser ${PROJECT_NAME})
+if(CATKIN_ENABLE_TESTING)
+ catkin_add_gtest(test_kdl_parser test/test_kdl_parser.cpp )
+ target_link_libraries(test_kdl_parser ${PROJECT_NAME})
+endif()
# How does CATKIN do this?
#rosbuild_add_rostest(${PROJECT_SOURCE_DIR}/test/test_kdl_parser.launch)
diff --git a/kdl_parser/package.xml b/kdl_parser/package.xml
index a82798a..e977f03 100644
--- a/kdl_parser/package.xml
+++ b/kdl_parser/package.xml
@@ -17,7 +17,7 @@
https://github.com/ros/robot_model
https://github.com/ros/robot_model/issues
- catkin
+ catkin
orocos_kdl
rosconsole
diff --git a/resource_retriever/CMakeLists.txt b/resource_retriever/CMakeLists.txt
index 6e67160..f34b0da 100644
--- a/resource_retriever/CMakeLists.txt
+++ b/resource_retriever/CMakeLists.txt
@@ -26,7 +26,9 @@ include_directories(${CURL_INCLUDE_DIRS})
add_library(${PROJECT_NAME} src/retriever.cpp)
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES} ${catkin_LIBRARIES})
-add_subdirectory(test EXCLUDE_FROM_ALL)
+if(CATKIN_ENABLE_TESTING)
+ add_subdirectory(test EXCLUDE_FROM_ALL)
+endif()
install(TARGETS ${PROJECT_NAME}
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
diff --git a/resource_retriever/package.xml b/resource_retriever/package.xml
index 562dff4..6e98408 100644
--- a/resource_retriever/package.xml
+++ b/resource_retriever/package.xml
@@ -19,7 +19,7 @@
https://github.com/ros/robot_model
https://github.com/ros/robot_model/issues
- catkin
+ catkin
curl
rosconsole
diff --git a/urdf/CMakeLists.txt b/urdf/CMakeLists.txt
index 5fde363..7b07226 100644
--- a/urdf/CMakeLists.txt
+++ b/urdf/CMakeLists.txt
@@ -33,8 +33,10 @@ if(APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif(APPLE)
-catkin_add_gtest(test_parser EXCLUDE_FROM_ALL test/test_robot_model_parser.cpp)
-target_link_libraries(test_parser ${PROJECT_NAME})
+if(CATKIN_ENABLE_TESTING)
+ catkin_add_gtest(test_parser EXCLUDE_FROM_ALL test/test_robot_model_parser.cpp)
+ target_link_libraries(test_parser ${PROJECT_NAME})
+endif()
# no idea how CATKIN does this
# rosbuild_add_rostest(${PROJECT_SOURCE_DIR}/test/test_robot_model_parser.launch)
diff --git a/urdf/package.xml b/urdf/package.xml
index b623dfd..daf04a6 100644
--- a/urdf/package.xml
+++ b/urdf/package.xml
@@ -17,7 +17,7 @@
https://github.com/ros/robot_model
https://github.com/ros/robot_model/issues
- catkin
+ catkin
rosconsole_bridge
roscpp