1 # Find ODBC (or UnixODBC)
3 find_path(ODBC_INCLUDE_DIR NAMES sql.h
4 DOC "The ODBC include directory"
7 find_library(ODBC_LIBRARY NAMES odbc odbc32
11 # handle the QUIETLY and REQUIRED arguments and set ODBC_FOUND to TRUE if
12 # all listed variables are TRUE
13 include(FindPackageHandleStandardArgs)
14 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ODBC DEFAULT_MSG ODBC_LIBRARY ODBC_INCLUDE_DIR)
17 set( ODBC_LIBRARIES ${ODBC_LIBRARY} )
18 set( ODBC_INCLUDE_DIRS ${ODBC_INCLUDE_DIR} )
21 mark_as_advanced(ODBC_INCLUDE_DIR ODBC_LIBRARY)