Fixes Catkin CMake for building libraries. (#177)
parent
31d5787544
commit
797ee08c5b
|
@ -43,13 +43,6 @@ find_package(catkin REQUIRED COMPONENTS ${PACKAGE_DEPENDENCIES})
|
||||||
include(FindPkgConfig)
|
include(FindPkgConfig)
|
||||||
PKG_SEARCH_MODULE(YAMLCPP REQUIRED yaml-cpp>=0.5.1)
|
PKG_SEARCH_MODULE(YAMLCPP REQUIRED yaml-cpp>=0.5.1)
|
||||||
|
|
||||||
catkin_package(
|
|
||||||
CATKIN_DEPENDS
|
|
||||||
message_runtime
|
|
||||||
${PACKAGE_DEPENDENCIES}
|
|
||||||
INCLUDE_DIRS ${PROJECT_NAME}
|
|
||||||
)
|
|
||||||
|
|
||||||
find_package(PCL REQUIRED COMPONENTS common io)
|
find_package(PCL REQUIRED COMPONENTS common io)
|
||||||
find_package(Eigen3 REQUIRED)
|
find_package(Eigen3 REQUIRED)
|
||||||
find_package(Boost REQUIRED COMPONENTS system iostreams)
|
find_package(Boost REQUIRED COMPONENTS system iostreams)
|
||||||
|
@ -61,8 +54,26 @@ if(DEFINED urdfdom_headers_VERSION)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
catkin_package(
|
||||||
|
CATKIN_DEPENDS
|
||||||
|
message_runtime
|
||||||
|
${PACKAGE_DEPENDENCIES}
|
||||||
|
DEPENDS
|
||||||
|
PCL
|
||||||
|
Eigen3
|
||||||
|
Boost
|
||||||
|
INCLUDE_DIRS "."
|
||||||
|
LIBRARIES ${PROJECT_NAME}
|
||||||
|
)
|
||||||
|
|
||||||
|
SET(ALL_LIBRARIES "" CACHE INTERNAL "ALL_LIBRARIES")
|
||||||
|
|
||||||
add_subdirectory("cartographer_ros")
|
add_subdirectory("cartographer_ros")
|
||||||
|
|
||||||
|
google_combined_library(${PROJECT_NAME}
|
||||||
|
SRCS "${ALL_LIBRARIES}"
|
||||||
|
)
|
||||||
|
|
||||||
install(DIRECTORY launch urdf configuration_files
|
install(DIRECTORY launch urdf configuration_files
|
||||||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
||||||
)
|
)
|
||||||
|
@ -70,3 +81,9 @@ install(DIRECTORY launch urdf configuration_files
|
||||||
install(PROGRAMS scripts/tf_remove_frames.py
|
install(PROGRAMS scripts/tf_remove_frames.py
|
||||||
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(TARGETS ${PROJECT_NAME}
|
||||||
|
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
||||||
|
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
||||||
|
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
|
||||||
|
)
|
||||||
|
|
|
@ -34,7 +34,7 @@ catkin_package(
|
||||||
CATKIN_DEPENDS
|
CATKIN_DEPENDS
|
||||||
message_runtime
|
message_runtime
|
||||||
${PACKAGE_DEPENDENCIES}
|
${PACKAGE_DEPENDENCIES}
|
||||||
INCLUDE_DIRS ${PROJECT_NAME}
|
INCLUDE_DIRS "."
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
Loading…
Reference in New Issue