hdl_global_localization
hdl_global_localization copied to clipboard
find_package(teaserpp REQUIRED)
Hi @koide3,
I try to build with teaser. I downloaded your modified teaser++ and make installed the lib into the default path/usr/local/
. Then the hdl_global_localization/CMakeLists.txt configs as following:
option(ENABLE_TEASER "Build with Teaser++" OFF)
find_package(teaserpp REQUIRED)
include_directories( ${teaserpp_INCLUDE_DIR} )
set(TEASER_LIBRARIES
teaserpp::teaser_registration
teaserpp::teaser_io
teaserpp::teaser_features
)
add_library(hdl_global_localization_teaser
src/hdl_global_localization/engines/global_localization_fpfh_teaser.cpp
)
target_link_libraries(hdl_global_localization_teaser
${TEASER_LIBRARIES}
)
target_link_libraries(hdl_global_localization
hdl_global_localization_teaser
)
When building, the output is:
CMake Error at hdl_global_localization_noted/CMakeLists.txt:45 (find_package):
By not providing "Findteaserpp.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "teaserpp",
but CMake did not find one.
Could not find a package configuration file provided by "teaserpp" with any
of the following names:
teaserppConfig.cmake
teaserpp-config.cmake
Add the installation prefix of "teaserpp" to CMAKE_PREFIX_PATH or set
"teaserpp_DIR" to a directory containing one of the above files. If
"teaserpp" provides a separate development package or SDK, be sure it has
been installed.
In the /usr/local/lib/cmake/teaserpp/
, there is no teaserppConfig.cmake
or teaserpp-config.cmake
, but teaserppTargets.cmake
and teaserppTargets-release.cmake
. How to fix this problem, thanks for your help and time!
/usr/local/lib/cmake/teaserpp/teaserppTargets.cmake
/usr/local/lib/cmake/teaserpp/teaserppTargets-release.cmake