FindDart.cmake 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # - Find DART
  2. # This module looks for the dart testing software and sets DART_ROOT
  3. # to point to where it found it.
  4. #
  5. #=============================================================================
  6. # Copyright 2001-2009 Kitware, Inc.
  7. #
  8. # Distributed under the OSI-approved BSD License (the "License");
  9. # see accompanying file Copyright.txt for details.
  10. #
  11. # This software is distributed WITHOUT ANY WARRANTY; without even the
  12. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. # See the License for more information.
  14. #=============================================================================
  15. # (To distribute this file outside of CMake, substitute the full
  16. # License text for the above reference.)
  17. find_path(DART_ROOT README.INSTALL
  18. HINTS
  19. ENV DART_ROOT
  20. PATHS
  21. ${PROJECT_SOURCE_DIR}
  22. /usr/share
  23. C:/
  24. "C:/Program Files"
  25. ${PROJECT_SOURCE_DIR}/..
  26. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
  27. ENV ProgramFiles
  28. PATH_SUFFIXES
  29. Dart
  30. DOC "If you have Dart installed, where is it located?"
  31. )
  32. # handle the QUIETLY and REQUIRED arguments and set DART_FOUND to TRUE if
  33. # all listed variables are TRUE
  34. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  35. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Dart DEFAULT_MSG DART_ROOT)
  36. mark_as_advanced(DART_ROOT)