nanoflannTargets.cmake 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Generated by CMake
  2. if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.6)
  3. message(FATAL_ERROR "CMake >= 2.6.0 required")
  4. endif()
  5. cmake_policy(PUSH)
  6. cmake_policy(VERSION 2.6...3.20)
  7. #----------------------------------------------------------------
  8. # Generated CMake target import file.
  9. #----------------------------------------------------------------
  10. # Commands may need to know the format version.
  11. set(CMAKE_IMPORT_FILE_VERSION 1)
  12. if(CMAKE_VERSION VERSION_LESS 3.0.0)
  13. message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
  14. endif()
  15. # Protect against multiple inclusion, which would fail when already imported targets are added once more.
  16. set(_targetsDefined)
  17. set(_targetsNotDefined)
  18. set(_expectedTargets)
  19. foreach(_expectedTarget nanoflann::nanoflann)
  20. list(APPEND _expectedTargets ${_expectedTarget})
  21. if(NOT TARGET ${_expectedTarget})
  22. list(APPEND _targetsNotDefined ${_expectedTarget})
  23. endif()
  24. if(TARGET ${_expectedTarget})
  25. list(APPEND _targetsDefined ${_expectedTarget})
  26. endif()
  27. endforeach()
  28. if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
  29. unset(_targetsDefined)
  30. unset(_targetsNotDefined)
  31. unset(_expectedTargets)
  32. set(CMAKE_IMPORT_FILE_VERSION)
  33. cmake_policy(POP)
  34. return()
  35. endif()
  36. if(NOT "${_targetsDefined}" STREQUAL "")
  37. message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
  38. endif()
  39. unset(_targetsDefined)
  40. unset(_targetsNotDefined)
  41. unset(_expectedTargets)
  42. # Create imported target nanoflann::nanoflann
  43. add_library(nanoflann::nanoflann INTERFACE IMPORTED)
  44. set_target_properties(nanoflann::nanoflann PROPERTIES
  45. INTERFACE_COMPILE_FEATURES "cxx_auto_type;cxx_decltype;cxx_deleted_functions"
  46. INTERFACE_INCLUDE_DIRECTORIES "/home/wjn/space-knn/kdTree/nanoflann/include"
  47. INTERFACE_LINK_LIBRARIES "Threads::Threads"
  48. )
  49. # This file does not depend on other imported targets which have
  50. # been exported from the same project but in a separate export set.
  51. # Commands beyond this point should not need to know the version.
  52. set(CMAKE_IMPORT_FILE_VERSION)
  53. cmake_policy(POP)