1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
find_package(PostgreSQL REQUIRED)
mark_as_advanced(PostgreSQL_INCLUDE_DIR PostgreSQL_LIBRARY)
set(PostgreSQL_SRCS
vtkPostgreSQLDatabase.cxx
vtkPostgreSQLQuery.cxx
vtkPostgreSQLToTableReader.cxx
vtkTableToPostgreSQLWriter.cxx
vtkIOPostgreSQL_AutoInit.cxx
)
set_source_files_properties(
vtkIOPostgreSQL_AutoInit
PROPERTIES
WRAP_EXCLUDE 1
WRAP_EXCLUDE_PYTHON 1
)
include_directories(${PostgreSQL_INCLUDE_DIRS})
vtk_module_library(vtkIOPostgreSQL ${PostgreSQL_SRCS})
vtk_module_link_libraries(vtkIOPostgreSQL LINK_PRIVATE ${PostgreSQL_LIBRARY})
|