MACRO( ADD_POSTGRES_LIBRARIES target_name )
    FIND_LIBRARY(PQ_LIB pq)
    IF ( PQ_LIB )
        TARGET_LINK_LIBRARIES( ${target_name} PRIVATE ${PQ_LIB} )
    ELSE()
        MESSAGE( WARNING "PQ_LIB not found" )
    ENDIF()
ENDMACRO()

MACRO( ADD_POSTGRES_INCLUDES target_name )
    TARGET_INCLUDE_DIRECTORIES( ${target_name} PRIVATE ${SERVER_INCLUDE_LIST_DIR} )
ENDMACRO()
