FindPostgreSQL — CMake 3.17.2 Documentation

# FindPostgreSQL

Find the PostgreSQL installation.

## IMPORTED Targets

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