summaryrefslogtreecommitdiff
path: root/indra/cmake/FindTut.cmake
blob: c2a9f430534aa1ee7e50ab87ed0bbe6b0cb241a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- cmake -*-

# - Find Tut
# Find the Tut unit test framework includes and library
# This module defines
#  TUT_INCLUDE_DIR, where to find tut/tut.hpp.
#  TUT_FOUND, If false, do not try to use Tut.

find_path(TUT_INCLUDE_DIR tut/tut.hpp
    NO_SYSTEM_ENVIRONMENT_PATH
    )

if (TUT_INCLUDE_DIR)
  set(TUT_FOUND "YES")
else (TUT_INCLUDE_DIR)
  set(TUT_FOUND "NO")
endif (TUT_INCLUDE_DIR)

if (TUT_FOUND)
  if (NOT TUT_FIND_QUIETLY)
    message(STATUS "Found Tut: ${TUT_INCLUDE_DIR}")
    set(TUT_FIND_QUIETLY TRUE) # Only alert us the first time
  endif (NOT TUT_FIND_QUIETLY)
else (TUT_FOUND)
  if (TUT_FIND_REQUIRED)
    message(FATAL_ERROR "Could not find Tut")
  endif (TUT_FIND_REQUIRED)
endif (TUT_FOUND)

mark_as_advanced(TUT_INCLUDE_DIR)