add libpcrecpp, without this patch, pcrecpp always fails > 13.04

This commit is contained in:
Kei Okada 2014-07-17 09:26:23 -07:00
parent 137268dc21
commit d18dc62f81
3 changed files with 10 additions and 2 deletions

View File

@ -10,11 +10,14 @@ find_package(catkin REQUIRED COMPONENTS
find_package(TinyXML REQUIRED)
find_package(PkgConfig)
pkg_check_modules(libpcrecpp libpcrecpp)
catkin_package(
LIBRARIES ${PROJECT_NAME}
INCLUDE_DIRS include ${TinyXML_INCLUDE_DIRS}
CATKIN_DEPENDS rosconsole_bridge roscpp
DEPENDS urdfdom_headers urdfdom Boost
DEPENDS urdfdom_headers urdfdom Boost pcrecpp
)
include_directories(SYSTEM ${Boost_INCLUDE_DIR})
@ -30,7 +33,7 @@ include_directories(
link_directories(${catkin_LIBRARY_DIRS})
add_library(${PROJECT_NAME} src/model.cpp src/rosconsole_bridge.cpp)
target_link_libraries(${PROJECT_NAME} ${TinyXML_LIBRARIES} ${catkin_LIBRARIES} ${urdfdom_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${TinyXML_LIBRARIES} ${catkin_LIBRARIES} ${urdfdom_LIBRARIES} ${libpcrecpp_LIBRARIES})
if(APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")

View File

@ -23,6 +23,7 @@
<build_depend>liburdfdom-headers-dev</build_depend>
<build_depend>rosconsole_bridge</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>pcre</build_depend>
<build_depend>urdf_parser_plugin</build_depend>
<build_depend>pluginlib</build_depend>
<build_depend>cmake_modules</build_depend>
@ -32,6 +33,7 @@
<run_depend>liburdfdom-headers-dev</run_depend>
<run_depend>rosconsole_bridge</run_depend>
<run_depend>roscpp</run_depend>
<run_depend>pcre</run_depend>
<run_depend>urdf_parser_plugin</run_depend>
<run_depend>pluginlib</run_depend>

View File

@ -52,6 +52,9 @@
#include <fstream>
#include <iostream>
#include <pcrecpp.h>
pcrecpp::RE __re__("");
namespace urdf{
static bool IsColladaData(const std::string& data)