# Copyright (C) 1995-2019, Rene Brun and Fons Rademakers.
# All rights reserved.
#
# For the licensing terms see $ROOTSYS/LICENSE.
# For the list of contributors see $ROOTSYS/README/CREDITS.

############################################################################
# CMakeLists.txt file for building ROOT sql/pgsql package
############################################################################

ROOT_STANDARD_LIBRARY_PACKAGE(PgSQL
  HEADERS
    TPgSQLResult.h
    TPgSQLRow.h
    TPgSQLServer.h
    TPgSQLStatement.h
  SOURCES
    src/TPgSQLResult.cxx
    src/TPgSQLRow.cxx
    src/TPgSQLServer.cxx
    src/TPgSQLStatement.cxx
  DEPENDENCIES
    Core
    Net
    RIO
)

target_include_directories(PgSQL PUBLIC ${PostgreSQL_INCLUDE_DIRS})
target_link_libraries(PgSQL PUBLIC ${PostgreSQL_LIBRARIES})
