Commit 263726ff authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkIOMySQL: update to the new module system

parent f5e6720e
find_package(MySQL REQUIRED)
set(classes
vtkMySQLDatabase
vtkMySQLQuery
vtkMySQLToTableReader
vtkTableToMySQLWriter)
set(MySQL_SRCS
vtkMySQLDatabase.cxx
vtkMySQLQuery.cxx
vtkMySQLToTableReader.cxx
vtkTableToMySQLWriter.cxx
vtkIOMySQL_AutoInit.cxx
)
set(sources
vtkIOMySQL_AutoInit.cxx)
include_directories(${MYSQL_INCLUDE_DIRECTORIES})
vtk_module_add_module(VTK::IOMySQL
CLASSES ${classes}
SOURCES ${sources})
vtk_module_library(vtkIOMySQL ${MySQL_SRCS})
vtk_module_link_libraries(vtkIOMySQL LINK_PRIVATE ${MYSQL_LIBRARY} ${MYSQL_EXTRA_LIBRARIES})
vtk_module_find_package(PACKAGE MySQL)
vtk_module_link(VTK::IOMySQL
PRIVATE
MySQL::MySQL)
vtk_module(vtkIOMySQL
IMPLEMENTS
vtkIOSQL
TEST_DEPENDS
vtkTestingCore
vtkTestingIOSQL
KIT
vtkIO
DEPENDS
vtkIOSQL
PRIVATE_DEPENDS
vtkCommonCore
vtkCommonDataModel
vtkCommonExecutionModel
vtksys
)
\ No newline at end of file
NAME
VTK::IOMySQL
LIBRARY_NAME
vtkIOMySQL
KIT
VTK::IO
IMPLEMENTS
VTK::IOSQL
DEPENDS
VTK::IOSQL
PRIVATE_DEPENDS
VTK::CommonCore
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