FindDart.cmake 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. $ENV{DART_ROOT}
  19. ${PROJECT_SOURCE_DIR}/Dart
  20. /usr/share/Dart
  21. C:/Dart
  22. "$ENV{ProgramFiles}/Dart"
  23. "C:/Program Files/Dart"
  24. ${PROJECT_SOURCE_DIR}/../Dart
  25. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
  26. DOC "If you have Dart installed, where is it located?"
  27. )
  28. # handle the QUIETLY and REQUIRED arguments and set DART_FOUND to TRUE if
  29. # all listed variables are TRUE
  30. INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  31. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Dart DEFAULT_MSG DART_ROOT)
  32. MARK_AS_ADVANCED(DART_ROOT)