vtk-m/vtkm/io/CMakeLists.txt
Kenneth Moreland 3e1339f9a7 Remove deprecated features from VTK-m
With the major revision 2.0 of VTK-m, many items previously marked as
deprecated were removed. If updating to a new version of VTK-m, it is
recommended to first update to VTK-m 1.9, which will include the deprecated
features but provide warnings (with the right compiler) that will point to
the replacement code. Once the deprecations have been fixed, updating to
2.0 should be smoother.
2022-11-17 07:12:31 -06:00

92 lines
2.0 KiB
CMake

##============================================================================
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt for details.
##
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
## PURPOSE. See the above copyright notice for more information.
##============================================================================
set(headers
BOVDataSetReader.h
DecodePNG.h
EncodePNG.h
ErrorIO.h
FileUtils.h
ImageReaderBase.h
ImageReaderPNG.h
ImageReaderPNM.h
ImageUtils.h
ImageWriterBase.h
ImageWriterPNG.h
ImageWriterPNM.h
PixelTypes.h
VTKDataSetReader.h
VTKDataSetReaderBase.h
VTKDataSetWriter.h
VTKPolyDataReader.h
VTKRectilinearGridReader.h
VTKStructuredGridReader.h
VTKStructuredPointsReader.h
VTKUnstructuredGridReader.h
)
set(template_sources
PixelTypes.hxx
)
set(sources
BOVDataSetReader.cxx
DecodePNG.cxx
EncodePNG.cxx
FileUtils.cxx
ImageReaderBase.cxx
ImageReaderPNG.cxx
ImageReaderPNM.cxx
ImageUtils.cxx
ImageWriterBase.cxx
ImageWriterPNG.cxx
ImageWriterPNM.cxx
PixelTypes.cxx
VTKDataSetReader.cxx
VTKDataSetReaderBase.cxx
VTKDataSetWriter.cxx
VTKPolyDataReader.cxx
VTKRectilinearGridReader.cxx
VTKStructuredGridReader.cxx
VTKStructuredPointsReader.cxx
VTKUnstructuredGridReader.cxx
)
if (VTKm_ENABLE_HDF5_IO)
set(headers
${headers}
ImageReaderHDF5.h
ImageWriterHDF5.h)
set(sources
${sources}
ImageReaderHDF5.cxx
ImageWriterHDF5.cxx)
endif ()
vtkm_declare_headers(
${headers}
${template_sources}
)
vtkm_library(
NAME vtkm_io
SOURCES ${sources}
DEVICE_SOURCES ${device_sources}
HEADERS ${headers}
TEMPLATE_SOURCES ${template_sources}
)
if (VTKm_ENABLE_HDF5_IO)
target_include_directories(vtkm_io PRIVATE $<BUILD_INTERFACE:${HDF5_INCLUDE_DIR}>)
target_link_libraries(vtkm_io PRIVATE ${HDF5_HL_LIBRARIES})
endif()
add_subdirectory(internal)