nanoflannConfig.cmake 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
  2. ####### Any changes to this file will be overwritten by the next CMake run ####
  3. ####### The input file was nanoflannConfig.cmake.in ########
  4. get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
  5. macro(set_and_check _var _file)
  6. set(${_var} "${_file}")
  7. if(NOT EXISTS "${_file}")
  8. message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
  9. endif()
  10. endmacro()
  11. macro(check_required_components _NAME)
  12. foreach(comp ${${_NAME}_FIND_COMPONENTS})
  13. if(NOT ${_NAME}_${comp}_FOUND)
  14. if(${_NAME}_FIND_REQUIRED_${comp})
  15. set(${_NAME}_FOUND FALSE)
  16. endif()
  17. endif()
  18. endforeach()
  19. endmacro()
  20. ####################################################################################
  21. include(CMakeFindDependencyMacro)
  22. find_dependency(Threads)
  23. include("${CMAKE_CURRENT_LIST_DIR}/nanoflannTargets.cmake")
  24. # (JLBC Feb 2021: Not used anymore?)
  25. #set_and_check(nanoflann_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")