FindDart.cmake 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file LICENSE.rst or https://cmake.org/licensing for details.
  3. #[=======================================================================[.rst:
  4. FindDart
  5. --------
  6. .. deprecated:: 3.27
  7. This module is available only if policy :policy:`CMP0145` is not set to ``NEW``.
  8. Finds DART:
  9. .. code-block:: cmake
  10. find_package(DART [...])
  11. This module looks for the dart testing software and sets ``DART_ROOT`` to
  12. point to where it found it.
  13. Result Variables
  14. ^^^^^^^^^^^^^^^^
  15. This module defines the following variables:
  16. ``Dart_FOUND``
  17. .. versionadded:: 3.3
  18. Boolean indicating whether DART was found.
  19. Cache Variables
  20. ^^^^^^^^^^^^^^^
  21. The following cache variables may also be set:
  22. ``DART_ROOT``
  23. The path to the Dart root installation.
  24. #]=======================================================================]
  25. if(_FindDart_testing)
  26. set(_FindDart_included TRUE)
  27. return()
  28. endif()
  29. find_path(DART_ROOT README.INSTALL
  30. HINTS
  31. ENV DART_ROOT
  32. PATHS
  33. ${PROJECT_SOURCE_DIR}
  34. /usr/share
  35. C:/
  36. "C:/Program Files"
  37. ${PROJECT_SOURCE_DIR}/..
  38. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
  39. ENV ProgramFiles
  40. PATH_SUFFIXES
  41. Dart
  42. DOC "If you have Dart installed, where is it located?"
  43. )
  44. include(FindPackageHandleStandardArgs)
  45. find_package_handle_standard_args(Dart DEFAULT_MSG DART_ROOT)
  46. mark_as_advanced(DART_ROOT)