Skip to content

Commit

Permalink
Fixup devel-space build after moveit#2604
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Jul 9, 2021
1 parent 7722d05 commit 1c64963
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
10 changes: 6 additions & 4 deletions moveit_core/kinematics_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
endif()

include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
generate_export_header(${MOVEIT_LIB_NAME} EXPORT_FILE_NAME ${CATKIN_DEVEL_PREFIX}/include/moveit/${MOVEIT_LIB_NAME}_export.h)
target_include_directories(${MOVEIT_LIB_NAME} PRIVATE $<BUILD_INTERFACE:${CATKIN_DEVEL_PREFIX}/include>) # for this library
list(APPEND ${PROJECT_NAME}_INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/include) # for use by other libraries in moveit_core

# This line is needed to ensure that messages are done being built before this is built
# This line ensures that messages are built before the library is built
add_dependencies(${MOVEIT_LIB_NAME} ${catkin_EXPORTED_TARGETS})

target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${urdfdom_LIBRARIES} ${urdfdom_headers_LIBRARIES} ${Boost_LIBRARIES})
Expand All @@ -24,4 +25,5 @@ install(TARGETS ${MOVEIT_LIB_NAME}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})

install(DIRECTORY include/ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/moveit/kinematics_base/)
install(FILES ${CATKIN_DEVEL_PREFIX}/include/moveit/${MOVEIT_LIB_NAME}_export.h
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/moveit)
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <boost/function.hpp>
#include <string>

#include "moveit_kinematics_base_export.h"
#include <moveit/moveit_kinematics_base_export.h>

namespace moveit
{
Expand Down
8 changes: 5 additions & 3 deletions moveit_core/planning_scene/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ add_library(${MOVEIT_LIB_NAME} src/planning_scene.cpp)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")

include(GenerateExportHeader)
generate_export_header(${MOVEIT_LIB_NAME})
target_include_directories(${MOVEIT_LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
generate_export_header(${MOVEIT_LIB_NAME} EXPORT_FILE_NAME ${CATKIN_DEVEL_PREFIX}/include/moveit/${MOVEIT_LIB_NAME}_export.h)
target_include_directories(${MOVEIT_LIB_NAME} PRIVATE $<BUILD_INTERFACE:${CATKIN_DEVEL_PREFIX}/include>) # for this library
list(APPEND ${PROJECT_NAME}_INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/include) # for use by other libraries in moveit_core

target_link_libraries(${MOVEIT_LIB_NAME}
moveit_robot_model
Expand All @@ -25,7 +26,8 @@ install(TARGETS ${MOVEIT_LIB_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
install(DIRECTORY include/ DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${MOVEIT_LIB_NAME}_export.h DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/moveit/planning_scene/)
install(FILES ${CATKIN_DEVEL_PREFIX}/include/moveit/${MOVEIT_LIB_NAME}_export.h
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/moveit)

if(CATKIN_ENABLE_TESTING)
catkin_add_gtest(test_planning_scene test/test_planning_scene.cpp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#include <memory>

// Import/export for windows dll's and visibility for gcc shared libraries.
#include "moveit_planning_scene_export.h"
#include <moveit/moveit_planning_scene_export.h>

/** \brief This namespace includes the central class for representing planning contexts */
namespace planning_scene
Expand Down

0 comments on commit 1c64963

Please sign in to comment.