You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current config file is generating absolute paths in linked dependencies. Use the more modern approach from https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html to generate targets that will use relative dependencies, in particular when installing the package.
This would also fix the problem of having to manually add rtabmap's dependencies explicitly in a downstream projects. For example, those lines:
would not be required anymore as find_package(RTABMap) will already include those dependencies (include directories and libraries). The target rtabmap would include everything to build, so the downstream project would need only this in its CMakeLists.txt file:
The current config file is generating absolute paths in linked dependencies. Use the more modern approach from https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html to generate targets that will use relative dependencies, in particular when installing the package.
This would also fix the problem of having to manually add rtabmap's dependencies explicitly in a downstream projects. For example, those lines:
rtabmap/examples/RGBDMapping/CMakeLists.txt
Lines 25 to 32 in fa31aff
would not be required anymore as
find_package(RTABMap)
will already include those dependencies (include directories and libraries). The targetrtabmap
would include everything to build, so the downstream project would need only this in itsCMakeLists.txt
file:With
main.cpp
:This would also fix the installation issues in introlab/rtabmap_ros#813
The text was updated successfully, but these errors were encountered: