# Config file for the small_gicp package
#
# Usage from an external project:
#
#  find_package(small_gicp REQUIRED)
#  target_link_libraries(MY_TARGET_NAME small_gicp::small_gicp)
#
# Optionally, for TBB support in *_tbb.hpp headers also add:
#
#  find_package(TBB REQUIRED)
#  target_link_libraries(MY_TARGET_NAME TBB::tbb TBB::tbbmalloc)
#
@PACKAGE_INIT@

include_guard()

set(BUILD_WITH_OPENMP @BUILD_WITH_OPENMP@)

include(CMakeFindDependencyMacro)
find_dependency(Eigen3 REQUIRED)
if (BUILD_WITH_OPENMP)
  find_dependency(OpenMP REQUIRED COMPONENTS CXX)
endif()

# For FindTBB.cmake
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")

include("${CMAKE_CURRENT_LIST_DIR}/small_gicp-targets.cmake")
