FIND_PATH(HELLO_INCLUDE_DIR hello.h /tmp/t3/usr/include/hello)
FIND_LIBRARY(HELLO_LIBRARY NAMES hello PATHS /tmp/t3/usr/lib)
IF (HELLO_INCLUDE_DIR AND HELLO_LIBRARY)
 SET(HELLO_FOUND TRUE)
ENDIF (HELLO_INCLUDE_DIR AND HELLO_LIBRARY)

# MESSAGE(STATUS "HELLO_FOUND: ${HELLO_FOUND}")
# MESSAGE(STATUS "Hello header DIR: ${HELLO_INCLUDE_DIR}")
# MESSAGE(STATUS "Hello Lib: ${HELLO_LIBRARY}")

IF (HELLO_FOUND)
 IF (NOT HELLO_FIND_QUIETLY)
  MESSAGE(STATUS "Found Hello header in ${HELLO_INCLUDE_DIR}")
  MESSAGE(STATUS "Found Hello: ${HELLO_LIBRARY}")
 ENDIF (NOT HELLO_FIND_QUIETLY)
ELSE (HELLO_FOUND)
 IF (HELLO_FIND_REQUIRED)
  MESSAGE(FATAL_ERROR "Could not find hello library")
 ENDIF (HELLO_FIND_REQUIRED)
ENDIF (HELLO_FOUND)
