From 76e9635f29176ae628cdfc5cffe33c7845f839cc Mon Sep 17 00:00:00 2001 From: YoheiKakiuchi Date: Thu, 17 Apr 2014 04:02:02 +0900 Subject: [PATCH] (euscollada) update for assimp_devel in jsk_common (#20) --- euscollada/catkin.cmake | 15 +++++++++------ euscollada/src/collada2eus_urdfmodel.cpp | 12 ++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/euscollada/catkin.cmake b/euscollada/catkin.cmake index 578af1d04..27c27f4a6 100644 --- a/euscollada/catkin.cmake +++ b/euscollada/catkin.cmake @@ -4,23 +4,26 @@ project(euscollada) catkin_package() -find_package(catkin REQUIRED COMPONENTS collada_urdf rospack assimp_devel collada_parser urdfdom resource_retriever) +find_package(catkin REQUIRED COMPONENTS collada_urdf rospack collada_parser urdfdom resource_retriever) + +set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CATKIN_DEVEL_PREFIX}/lib/pkgconfig") find_package(PkgConfig) pkg_check_modules(colladadom collada-dom-150 REQUIRED) pkg_check_modules(yaml_cpp yaml-cpp REQUIRED) -include_directories(${catkin_INCLUDE_DIRS} ${colladadom_INCLUDE_DIRS} ${yaml_cpp_INCLUDE_DIRS}) -link_directories(${catkin_LIBRARY_DIRS}) +pkg_check_modules(assimpdevel assimp_devel REQUIRED) +include_directories(${catkin_INCLUDE_DIRS} ${colladadom_INCLUDE_DIRS} ${yaml_cpp_INCLUDE_DIRS} ${assimpdevel_INCLUDE_DIRS}) +link_directories(${catkin_LIBRARY_DIRS} ${assimpdevel_LIBRARY_DIRS}) add_executable(collada2eus src/collada2eus.cpp) target_link_libraries(collada2eus ${catkin_LIBRARIES} qhull ${yaml_cpp_LIBRARIES} ${colladadom_LIBRARIES} ${recource_retriever_LIBRARIES}) -add_dependencies(collada2eus libassimp) +add_dependencies(collada2eus libassimp_devel) find_package(Boost REQUIRED system) include_directories(${Boost_INCLUDE_DIR}) add_executable(collada2eus_urdfmodel src/collada2eus_urdfmodel.cpp) -target_link_libraries(collada2eus_urdfmodel ${catkin_LIBRARIES} qhull ${yaml_cpp_LIBRARIES} ${colladadom_LIBRARIES} ${collada_parser_LIBRARIES} ${recource_retriever_LIBRARIES} ${assimp_devel_LIBRARIES} ${Boost_LIBRARIES}) -add_dependencies(collada2eus_urdfmodel libassimp) +target_link_libraries(collada2eus_urdfmodel ${catkin_LIBRARIES} qhull ${yaml_cpp_LIBRARIES} ${colladadom_LIBRARIES} ${collada_parser_LIBRARIES} ${recource_retriever_LIBRARIES} ${assimpdevel_LIBRARIES} ${Boost_LIBRARIES}) +add_dependencies(collada2eus_urdfmodel libassimp_devel) install(TARGETS collada2eus collada2eus_urdfmodel RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} diff --git a/euscollada/src/collada2eus_urdfmodel.cpp b/euscollada/src/collada2eus_urdfmodel.cpp index ff29721a3..830cb12ce 100644 --- a/euscollada/src/collada2eus_urdfmodel.cpp +++ b/euscollada/src/collada2eus_urdfmodel.cpp @@ -7,12 +7,12 @@ #include #include -// assimp 3 (assimp_devel) -#include -#include -#include -#include -#include +// assimp_devel +#include +#include +#include +#include +#include #include #include