Compare commits
1 Commits
4fb3fdc28c
...
50062ef549
| Author | SHA1 | Date | |
|---|---|---|---|
| 50062ef549 |
@@ -36,7 +36,7 @@ if (NOT BUILDING_WITH_CATKIN)
|
|||||||
tf3
|
tf3
|
||||||
data_convert
|
data_convert
|
||||||
)
|
)
|
||||||
|
find_library(TF3_LIBRARY NAMES tf3 PATHS /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu)
|
||||||
else()
|
else()
|
||||||
|
|
||||||
# ========================================================
|
# ========================================================
|
||||||
@@ -46,21 +46,24 @@ else()
|
|||||||
robot_sensor_msgs
|
robot_sensor_msgs
|
||||||
geometry_msgs
|
geometry_msgs
|
||||||
robot_time
|
robot_time
|
||||||
tf3
|
|
||||||
data_convert
|
data_convert
|
||||||
)
|
)
|
||||||
|
|
||||||
|
find_library(TF3_LIBRARY NAMES tf3 PATHS /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu)
|
||||||
|
find_package(Eigen3 REQUIRED)
|
||||||
|
|
||||||
catkin_package(
|
catkin_package(
|
||||||
INCLUDE_DIRS include
|
INCLUDE_DIRS include
|
||||||
LIBRARIES ${PROJECT_NAME}
|
LIBRARIES ${PROJECT_NAME}
|
||||||
CATKIN_DEPENDS robot_sensor_msgs geometry_msgs robot_time tf3 data_convert
|
CATKIN_DEPENDS robot_sensor_msgs geometry_msgs robot_time data_convert
|
||||||
DEPENDS Eigen3
|
DEPENDS Eigen3
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
include
|
include
|
||||||
${catkin_INCLUDE_DIRS}
|
${catkin_INCLUDE_DIRS}
|
||||||
${EIGEN3_INCLUDE_DIRS}
|
${EIGEN3_INCLUDE_DIRS}
|
||||||
|
${TF3_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -80,6 +83,7 @@ if(BUILDING_WITH_CATKIN)
|
|||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
PUBLIC ${catkin_LIBRARIES}
|
PUBLIC ${catkin_LIBRARIES}
|
||||||
|
${TF3_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
@@ -93,6 +97,7 @@ else()
|
|||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${PACKAGES_DIR}
|
${PACKAGES_DIR}
|
||||||
|
${TF3_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||||
@@ -174,7 +179,8 @@ if(BUILD_TESTING)
|
|||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
GTest::GTest
|
GTest::GTest
|
||||||
GTest::Main
|
GTest::Main
|
||||||
pthread
|
Boost::system Boost::thread
|
||||||
|
${TF3_LIBRARY}
|
||||||
)
|
)
|
||||||
add_test(NAME ${PROJECT_NAME}_test COMMAND ${PROJECT_NAME}_test)
|
add_test(NAME ${PROJECT_NAME}_test COMMAND ${PROJECT_NAME}_test)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -28,9 +28,6 @@
|
|||||||
<build_depend>robot_time</build_depend>
|
<build_depend>robot_time</build_depend>
|
||||||
<run_depend>robot_time</run_depend>
|
<run_depend>robot_time</run_depend>
|
||||||
|
|
||||||
<build_depend>tf3</build_depend>
|
|
||||||
<run_depend>tf3</run_depend>
|
|
||||||
|
|
||||||
<build_depend>data_convert</build_depend>
|
<build_depend>data_convert</build_depend>
|
||||||
<run_depend>data_convert</run_depend>
|
<run_depend>data_convert</run_depend>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user