1
# - Try to find the FreeTDS library
2
# Once done this will define
4
# FreeTDS_FOUND - system has FreeTDS
5
# FreeTDS_INCLUDE_DIR - the FreeTDS include directory
6
# FreeTDS_LIBRARIES - Link these to use FreeTDS
9
IF (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES )
12
SET(FREETDS_FOUND TRUE)
14
ELSE (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES)
16
FIND_PATH(FreeTDS_INCLUDE_DIR NAMES sqldb.h sqlfront.h
19
FIND_LIBRARY(FreeTDS_TDS_LIBRARIES NAMES tds )
21
FIND_LIBRARY(FreeTDS_SYBDB_LIBRARIES NAMES sybdb )
23
set(FreeTDS_LIBRARIES ${FreeTDS_SYBDB_LIBRARIES} ${FreeTDS_TDS_LIBRARIES} CACHE STRING "Libraries needed for sybase/mssql driver")
25
include(FindPackageHandleStandardArgs)
26
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FreeTDS DEFAULT_MSG FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES )
28
MARK_AS_ADVANCED(FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES)
30
ENDIF (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES )