FindPostgreSQL¶
Find the PostgreSQL installation.
IMPORTED Targets¶
New 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_FOUND
True if PostgreSQL is found.
PostgreSQL_LIBRARIES
the PostgreSQL libraries needed for linking
PostgreSQL_INCLUDE_DIRS
the directories of the PostgreSQL headers
PostgreSQL_LIBRARY_DIRS
the link directories for PostgreSQL libraries
PostgreSQL_VERSION_STRING
the version of PostgreSQL found
PostgreSQL_TYPE_INCLUDE_DIR
the 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.