FindDart.cmake 1.35 KB
Newer Older
1 2 3
#.rst:
# FindDart
# --------
4
#
5 6 7 8
# Find DART
#
# This module looks for the dart testing software and sets DART_ROOT to
# point to where it found it.
9

10 11 12 13 14 15 16 17 18 19
#=============================================================================
# Copyright 2001-2009 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
20
# (To distribute this file outside of CMake, substitute the full
21 22
#  License text for the above reference.)

23
find_path(DART_ROOT README.INSTALL
24 25 26
    HINTS
      ENV DART_ROOT
    PATHS
27 28 29 30 31 32 33 34 35
      ${PROJECT_SOURCE_DIR}
      /usr/share
      C:/
      "C:/Program Files"
      ${PROJECT_SOURCE_DIR}/..
      [HKEY_LOCAL_MACHINE\\SOFTWARE\\Dart\\InstallPath]
      ENV ProgramFiles
    PATH_SUFFIXES
      Dart
Ken Martin's avatar
Ken Martin committed
36
    DOC "If you have Dart installed, where is it located?"
37
    )
38

39 40
# handle the QUIETLY and REQUIRED arguments and set DART_FOUND to TRUE if
# all listed variables are TRUE
41
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
42 43
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Dart DEFAULT_MSG DART_ROOT)

44
mark_as_advanced(DART_ROOT)