/usr/lib/Wt/cmake/WtFindMysql.txt is in witty-examples 3.3.0-1build1.
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 | # This file defines:
# - MYSQL_LIBRARIES
# - MYSQL_INCLUDE_DIRS
# - MYSQL_FOUND
# - MYSQL_DEFINITIONS
# Taking into account:
# - MYSQL_PREFIX
FIND_PATH(MYSQL_INCLUDE mysql.h
${MYSQL_PREFIX}/mariadbclient/include
${MYSQL_PREFIX}/include
${MYSQL_PREFIX}/include/mysql
/usr/include
/usr/local/include
/usr/include/mysql
/opt/local/include/mysql5/mysql
/usr/local/include/mysql
)
SET(MYSQL_LIBRARY mysqlclient mariadb mariadbclient CACHE STRING "Library that provides MySQL/MariaDB API (set to mysqlclient for mysql on unix; libmysql on windows)")
FIND_LIBRARY(MYSQL_LIB
NAMES
${MYSQL_LIBRARY}
PATHS
${MYSQL_PREFIX}/lib
${MYSQL_PREFIX}/lib/opt
/usr/lib
/usr/local/lib
/opt/local/lib
)
SET(MYSQL_FOUND OFF)
IF (MYSQL_INCLUDE AND MYSQL_LIB)
SET(MYSQL_FOUND ON)
SET(MYSQL_LIBRARIES ${MYSQL_LIB})
SET(MYSQL_INCLUDE_DIRS ${MYSQL_INCLUDE})
ELSE (MYSQL_INCLUDE AND MYSQL_LIB)
SET(MYSQL_FOUND OFF)
SET(MYSQL_LIBRARIES)
ENDIF (MYSQL_INCLUDE AND MYSQL_LIB)
|