Imported existing code
This commit is contained in:
34
indra/cmake/FindTut.cmake
Normal file
34
indra/cmake/FindTut.cmake
Normal file
@@ -0,0 +1,34 @@
|
||||
# -*- 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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user