/usr/lib/Wt/cmake/WtFindPostgresql.txt is in witty-examples 3.3.3+dfsg-4.1.
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 | # This file defines:
# - POSTGRES_LIBRARIES
# - POSTGRES_INCLUDE_DIRS
# - POSTGRES_FOUND
# Taking into account:
# - POSTGRES_PREFIX
FIND_LIBRARY(POSTGRES_LIBRARIES
NAMES
pq libpq
PATHS
${POSTGRES_PREFIX}/lib
${POSTGRES_PREFIX}
/usr/lib
/usr/lib64
/usr/local/lib
/opt/local/lib
)
FIND_PATH(POSTGRES_INCLUDE libpq-fe.h
${POSTGRES_PREFIX}/include
${POSTGRES_PREFIX}/postgresql/include
/usr/include
/usr/include/pgsql
/usr/include/postgresql
/usr/local/include
/usr/local/include/postgresql
/opt/local/include
/opt/local/include/postgresql
)
SET(POSTGRES_FOUND FALSE)
IF(POSTGRES_LIBRARIES AND POSTGRES_INCLUDE)
SET(POSTGRES_FOUND TRUE)
SET(POSTGRES_INCLUDE_DIRS ${POSTGRES_INCLUDE})
ENDIF(POSTGRES_LIBRARIES AND POSTGRES_INCLUDE)
|