diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-08-24 15:52:20 +0300 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-08-24 15:52:20 +0300 |
commit | a412c2f747495a36c088d7fafee8044338ff4ff1 (patch) | |
tree | 92824d7cdfd35eb3f56deea92577a76aa577408e /indra/cmake/FindTut.cmake | |
parent | f305ddc7f773454826a09a8d52c33735eb7c95ea (diff) | |
parent | 01d06a3572c533f810f8f42e7ae9c55051f34aaf (diff) |
Merge from default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/cmake/FindTut.cmake')
-rw-r--r-- | indra/cmake/FindTut.cmake | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/indra/cmake/FindTut.cmake b/indra/cmake/FindTut.cmake new file mode 100644 index 0000000000..b5d58f6396 --- /dev/null +++ b/indra/cmake/FindTut.cmake @@ -0,0 +1,31 @@ +# -*- cmake -*- + +# - Find Tut +# Find the Tut unit test framework includes and library +# This module defines +# TUT_INCLUDE_DIR, where to find tut.h, etc. +# TUT_FOUND, If false, do not try to use Tut. + +find_path(TUT_INCLUDE_DIR tut.h + /usr/local/include/ + /usr/include + ) + +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) |