Commit de371b96 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel
Browse files

vtkIOPostgreSQL: update to the new module system

parent 8f6b7c56
find_package(PostgreSQL REQUIRED)
mark_as_advanced(PostgreSQL_INCLUDE_DIR PostgreSQL_LIBRARY)
vtk_module_find_package(PACKAGE PostgreSQL)
set(PostgreSQL_SRCS
vtkPostgreSQLDatabase.cxx
vtkPostgreSQLQuery.cxx
vtkPostgreSQLToTableReader.cxx
vtkTableToPostgreSQLWriter.cxx
vtkIOPostgreSQL_AutoInit.cxx
)
set(classes
vtkPostgreSQLDatabase
vtkPostgreSQLQuery
vtkPostgreSQLToTableReader
vtkTableToPostgreSQLWriter)
include_directories(${PostgreSQL_INCLUDE_DIRS})
vtk_module_add_module(VTK::IOPostgreSQL
CLASSES ${classes}
SOURCES vtkIOPostgreSQL_AutoInit.cxx)
vtk_module_library(vtkIOPostgreSQL ${PostgreSQL_SRCS})
vtk_module_link_libraries(vtkIOPostgreSQL LINK_PRIVATE ${PostgreSQL_LIBRARY})
vtk_module_link(VTK::IOPostgreSQL
PRIVATE
PostgreSQL::PostgreSQL)
vtk_module(vtkIOPostgreSQL
IMPLEMENTS
vtkIOSQL
TEST_DEPENDS
vtkTestingIOSQL
vtkTestingCore
KIT
vtkIO
DEPENDS
vtkCommonCore
vtkIOSQL
PRIVATE_DEPENDS
vtkCommonDataModel
vtkCommonExecutionModel
vtksys
)
\ No newline at end of file
NAME
VTK::IOPostgreSQL
LIBRARY_NAME
vtkIOPostgreSQL
KIT
VTK::IO
IMPLEMENTS
VTK::IOSQL
DEPENDS
VTK::CommonCore
VTK::IOSQL
PRIVATE_DEPENDS
VTK::CommonDataModel
VTK::CommonExecutionModel
VTK::vtksys
TEST_DEPENDS
VTK::TestingCore
VTK::TestingIOSQL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment