Commit 0ec6a10a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkIOGDAL: update to the new module system

parent 6a279a02
find_package(GDAL REQUIRED)
mark_as_advanced(GDAL_INCLUDE_DIR GDAL_LIBRARY)
set(GDAL_SRCS vtkGDAL.cxx vtkGDALVectorReader.cxx vtkGDALRasterReader.cxx)
include_directories(${GDAL_INCLUDE_DIRS})
vtk_module_library(vtkIOGDAL ${GDAL_SRCS})
vtk_module_link_libraries(vtkIOGDAL LINK_PRIVATE ${GDAL_LIBRARY})
vtk_module_find_package(PACKAGE GDAL)
set(classes
vtkGDAL
vtkGDALVectorReader
vtkGDALRasterReader)
vtk_module_add_module(VTK::IOGDAL
CLASSES ${classes})
vtk_module_link(VTK::IOGDAL
PRIVATE
GDAL::GDAL)
vtk_module_test_data(
Data/GIS/countries.shp
Data/GIS/countries.shx
Data/GIS/raster.tif)
add_subdirectory(Cxx)
vtk_module(vtkIOGDAL
TEST_DEPENDS
vtkTestingCore
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
KIT
vtkIO
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
vtkIOImage
PRIVATE_DEPENDS
vtkCommonDataModel
)
NAME
VTK::IOGDAL
LIBRARY_NAME
vtkIOGDAL
KIT
VTK::IO
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
VTK::IOImage
PRIVATE_DEPENDS
VTK::CommonDataModel
TEST_DEPENDS
VTK::InteractionStyle
VTK::RenderingOpenGL2
VTK::TestingCore
VTK::TestingRendering
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