1 # - Try to find HTS Engine
2 # Once done this will define
4 # HTS_ENGINE_FOUND - system has HTS Engine
5 # HTS_ENGINE_INCLUDE_DIRS - the HTS Engine include directory
6 # HTS_ENGINE_LIBRARIES - Link these to use HTS Engine
7 # HTS_ENGINE_DEFINITIONS - Compiler switches required for using HTS Engine
9 # Copyright (c) 2013 Saikrishna Arcot <saiarcot895@gmail.com>
11 # Redistribution and use is allowed according to the terms of the New
13 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
17 if (HTS_ENGINE_LIBRARIES AND HTS_ENGINE_INCLUDE_DIRS)
19 set(HTS_ENGINE_FOUND TRUE)
20 else (HTS_ENGINE_LIBRARIES AND HTS_ENGINE_INCLUDE_DIRS)
21 #set(HTS_ENGINE_DEFINITIONS ${_HTS_EngineCflags})
22 set(HTS_ENGINE_DEFINITIONS "")
24 find_path(HTS_ENGINE_INCLUDE_DIR
35 find_library(HTS_ENGINE_LIBRARY
46 if (HTS_ENGINE_LIBRARY)
47 set(HTS_ENGINE_FOUND TRUE)
48 endif (HTS_ENGINE_LIBRARY)
50 set(HTS_ENGINE_INCLUDE_DIRS
51 ${HTS_ENGINE_INCLUDE_DIR}
55 set(HTS_ENGINE_LIBRARIES
56 ${HTS_ENGINE_LIBRARIES}
59 endif (HTS_ENGINE_FOUND)
61 if (HTS_ENGINE_INCLUDE_DIRS AND HTS_ENGINE_LIBRARIES)
62 set(HTS_ENGINE_FOUND TRUE)
63 endif (HTS_ENGINE_INCLUDE_DIRS AND HTS_ENGINE_LIBRARIES)
66 if (NOT HTS_Engine_FIND_QUIETLY)
67 message(STATUS "Found HTS Engine: ${HTS_ENGINE_LIBRARIES}")
68 endif (NOT HTS_Engine_FIND_QUIETLY)
69 else (HTS_ENGINE_FOUND)
70 if (HTS_Engine_FIND_REQUIRED)
71 message(FATAL_ERROR "Could not find HTS Engine")
72 endif (HTS_Engine_FIND_REQUIRED)
73 endif (HTS_ENGINE_FOUND)
75 # show the HTS_ENGINE_INCLUDE_DIRS and HTS_ENGINE_LIBRARIES variables only in the advanced view
76 mark_as_advanced(HTS_ENGINE_INCLUDE_DIRS HTS_ENGINE_LIBRARIES)
78 endif (HTS_ENGINE_LIBRARIES AND HTS_ENGINE_INCLUDE_DIRS)