set(HEADER include/postgres_connection.hpp include/postgres_error.hpp include/postgres_result_reader.hpp include/postgres_dialect.hpp ) set(SOURCES src/postgres_connection.cpp src/postgres_error.cpp src/postgres_result_reader.cpp src/postgres_dialect.cpp ) add_library(matador-postgres SHARED ${SOURCES} ${HEADER}) target_include_directories(matador-postgres PRIVATE ${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/backends/postgres/include ${PostgreSQL_INCLUDE_DIRS}) target_link_libraries(matador-postgres matador ${PostgreSQL_LIBRARIES}) set_target_properties(matador-postgres PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/backends" )