FindDart.cmake 1.4 KB

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