/usr/lib/vtk-5.8/CMake/FindMySQL.cmake is in libvtk5-dev 5.8.0-14.1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | #
# Find the MySQL client includes and library
#
# This module defines
# MYSQL_INCLUDE_DIRECTORIES, where to find mysql.h
# MYSQL_LIBRARIES, the libraries to link against to connect to MySQL
# MYSQL_FOUND, If false, you cannot build anything that requires MySQL.
# also defined, but not for general use are
# MYSQL_LIBRARY, where to find the MySQL library.
#
# XXX NOTE: This is not yet for general use. I'm pretty sure there
# are other libraries I have to link against at the same time.
#
SET( MYSQL_FOUND 0 )
FIND_PATH(MYSQL_INCLUDE_DIRECTORIES mysql.h
/usr/include
/usr/include/mysql
/usr/local/include
/usr/local/include/mysql
/usr/local/mysql/include
"C:/Program Files/MySQL/include"
"C:/Program Files/MySQL/MySQL Server 5.0/include"
"C:/MySQL/include"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\MySQL AB\\MySQL Server 5.0;Location]/include"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\MySQL AB\\MySQL Server 5.0;Location]/include"
DOC "Specify the directory containing mysql.h."
)
FIND_LIBRARY( MYSQL_LIBRARY
NAMES mysql libmysql mysqlclient
PATHS
/usr/lib
/usr/lib/mysql
/usr/local/lib
/usr/local/lib/mysql
/usr/local/mysql/lib
"C:/Program Files/MySQL/lib"
"C:/Program Files/MySQL/MySQL Server 5.0/lib/opt"
"C:/MySQL/lib/debug"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\MySQL AB\\MySQL Server 5.0;Location]/lib/opt"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\MySQL AB\\MySQL Server 5.0;Location]/lib/opt"
DOC "Specify the mysql library here."
)
# On Windows you typically don't need to include any extra libraries
# to build MYSQL stuff.
IF (NOT WIN32)
FIND_LIBRARY( MYSQL_EXTRA_LIBRARIES
NAMES z zlib
PATHS /usr/lib /usr/local/lib
DOC "If more libraries are necessary to link in a MySQL client (typically zlib), specify them here.")
ELSE (NOT WIN32)
SET( MYSQL_EXTRA_LIBRARIES "" )
ENDIF (NOT WIN32)
IF (MYSQL_LIBRARY)
IF (MYSQL_INCLUDE_DIRECTORIES)
SET( MYSQL_FOUND 1 )
ENDIF (MYSQL_INCLUDE_DIRECTORIES)
ENDIF (MYSQL_LIBRARY)
MARK_AS_ADVANCED( MYSQL_FOUND MYSQL_LIBRARY MYSQL_EXTRA_LIBRARIES MYSQL_INCLUDE_DIRECTORIES )
|