
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7 FATAL_ERROR)

INCLUDE(FindPackageHandleStandardArgs)

FIND_LIBRARY(TH_LIBRARY TH)
FIND_PATH(TH_INCLUDE_DIR "TH.h" PATHS "${CMAKE_PREFIX_PATH}/include/TH")

SET(TH_LIBRARIES ${TH_LIBRARY})

FIND_PACKAGE_HANDLE_STANDARD_ARGS(
  TH
  REQUIRED_ARGS
    TH_INCLUDE_DIR
    TH_LIBRARY)
