FindDart.cmake 949 B

123456789101112131415161718192021222324252627282930313233
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #[=======================================================================[.rst:
  4. FindDart
  5. --------
  6. Find DART
  7. This module looks for the dart testing software and sets DART_ROOT to
  8. point to where it found it.
  9. #]=======================================================================]
  10. find_path(DART_ROOT README.INSTALL
  11. HINTS
  12. ENV DART_ROOT
  13. PATHS
  14. ${PROJECT_SOURCE_DIR}
  15. /usr/share
  16. C:/
  17. "C:/Program Files"
  18. ${PROJECT_SOURCE_DIR}/..
  19. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
  20. ENV ProgramFiles
  21. PATH_SUFFIXES
  22. Dart
  23. DOC "If you have Dart installed, where is it located?"
  24. )
  25. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  26. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Dart DEFAULT_MSG DART_ROOT)
  27. mark_as_advanced(DART_ROOT)