Files
sbpl/robot_sbpl-config.cmake.in
duongtd ce7d0af7d4 build: rename the package to robot_sbpl
ros-noetic-sbpl (apt, 2020) installs a libsbpl.so without the abort flag in
/opt/ros/noetic/lib. A ROS environment puts that directory on
LD_LIBRARY_PATH, which the loader searches before any RUNPATH, so a
process that sourced ROS loaded the apt library instead of this one:
sbpl_lattice_planner then ran with a header/library ABI mismatch and
preempt disabled.

The package now follows the robot_* naming of the other packages:
- project and target robot_sbpl, library file librobot_sbpl.so;
- robot_sbpl-config.cmake (installed to share/robot_sbpl/, variables
  robot_sbpl_INCLUDE_DIRS / robot_sbpl_LIBRARIES) and robot_sbpl.pc;
- the target exports src/include as a PUBLIC include directory, so an
  in-tree consumer gets the headers that match the library.
- the target is installed with an export set (robot_sbpl-targets), like
  the other robot_* packages; sbpl_lattice_planner exports its own target
  and CMake requires its shared dependencies to be exported as well.

Headers keep the sbpl/ prefix, so no source include changes.
2026-10-21 15:06:48 +07:00

31 lines
1.3 KiB
CMake

# ===================================================================================
# The robot_sbpl CMake configuration file
#
# ** File generated automatically, do not modify **
#
# Usage from an external project:
# In your CMakeLists.txt, add these lines:
#
# FIND_PACKAGE(robot_sbpl REQUIRED )
# INCLUDE_DIRECTORIES(${robot_sbpl_INCLUDE_DIRS})
# TARGET_LINK_LIBRARIES(MY_TARGET_NAME ${robot_sbpl_LIBRARIES})
#
# This file will define the following variables:
# - robot_sbpl_LIBRARIES : The list of libraries to links against as absolute path
# - robot_sbpl_LIBRARY_DIRS : The directory where lib files are. Calling
# LINK_DIRECTORIES with this path is NOT needed.
# - robot_sbpl_INCLUDE_DIRS : The SBPL include directories.
#
# Based on the example CMake Tutorial
# http://www.vtk.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file
# and OpenCVConfig.cmake.in from OpenCV
# ===================================================================================
set(robot_sbpl_INCLUDE_DIRS "@SBPL_INCLUDE_DIR@")
set(robot_sbpl_LIBRARY_DIRS "@SBPL_LIB_DIR@")
# Set library names as absolute paths:
set(robot_sbpl_LIBRARIES "@SBPL_LIB_DIR@/librobot_sbpl@CMAKE_SHARED_LIBRARY_SUFFIX@")