FindPostgreSQL¶
Find the PostgreSQL installation.
IMPORTED Targets¶
Added in version 3.14.
This module defines IMPORTED target PostgreSQL::PostgreSQL
if PostgreSQL has been found.
Result Variables¶
This module will set the following variables in your project:
PostgreSQL_FOUNDTrue if PostgreSQL is found.
PostgreSQL_LIBRARIESthe PostgreSQL libraries needed for linking
PostgreSQL_INCLUDE_DIRSthe directories of the PostgreSQL headers
PostgreSQL_LIBRARY_DIRSthe link directories for PostgreSQL libraries
PostgreSQL_VERSION_STRINGthe version of PostgreSQL found
PostgreSQL_TYPE_INCLUDE_DIRthe directories of the PostgreSQL server headers
Components¶
This module contains additional Server component, that forcibly checks
for the presence of server headers. Note that PostgreSQL_TYPE_INCLUDE_DIR
is set regardless of the presence of the Server component in find_package call.