Warning, /office/kexi/cmake/modules/FindFreeTDS.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find the FreeTDS library
0002 # Once done this will define
0003 #
0004 # FreeTDS_FOUND - system has FreeTDS
0005 # FreeTDS_INCLUDE_DIR - the FreeTDS include directory
0006 # FreeTDS_LIBRARIES - Link these to use FreeTDS
0007
0008
0009 if (FreeTDS_INCLUDE_DIR AND FreeTDS_LIBRARIES )
0010
0011 # Already in cache
0012 SET(FREETDS_FOUND TRUE)
0013
0014 else ()
0015
0016 find_path(FreeTDS_INCLUDE_DIR NAMES sqldb.h sqlfront.h)
0017
0018 # FIND_LIBRARY(FreeTDS_TDS_LIBRARIES NAMES tds )
0019
0020 find_library(FreeTDS_LIBRARIES NAMES sybdb )
0021
0022 #set(FreeTDS_LIBRARIES ${FreeTDS_SYBDB_LIBRARIES} CACHE STRING "Libraries needed for sybase/mssql driver")
0023
0024 include(FindPackageHandleStandardArgs)
0025 find_package_handle_standard_args(FreeTDS DEFAULT_MSG FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES)
0026
0027 mark_as_advanced(FreeTDS_INCLUDE_DIR FreeTDS_LIBRARIES)
0028
0029 endif ()
0030