2015-10-22 21:18:33 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
##
|
2015-10-22 21:18:33 +00:00
|
|
|
## 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.
|
|
|
|
##============================================================================
|
|
|
|
|
2015-10-26 14:07:36 +00:00
|
|
|
set(headers
|
2020-04-30 11:37:55 +00:00
|
|
|
BOVDataSetReader.h
|
2020-04-28 11:13:27 +00:00
|
|
|
DecodePNG.h
|
|
|
|
EncodePNG.h
|
2020-05-28 20:36:15 +00:00
|
|
|
ErrorIO.h
|
|
|
|
FileUtils.h
|
2020-05-28 22:49:28 +00:00
|
|
|
ImageReaderBase.h
|
|
|
|
ImageReaderPNG.h
|
|
|
|
ImageReaderPNM.h
|
2020-05-28 20:36:15 +00:00
|
|
|
ImageUtils.h
|
2020-05-29 01:00:33 +00:00
|
|
|
ImageWriterBase.h
|
|
|
|
ImageWriterPNG.h
|
|
|
|
ImageWriterPNM.h
|
2019-11-22 22:40:09 +00:00
|
|
|
PixelTypes.h
|
2020-04-30 11:37:55 +00:00
|
|
|
VTKDataSetReader.h
|
|
|
|
VTKDataSetReaderBase.h
|
2020-05-19 19:29:04 +00:00
|
|
|
VTKDataSetWriter.h
|
2020-04-30 11:37:55 +00:00
|
|
|
VTKPolyDataReader.h
|
|
|
|
VTKRectilinearGridReader.h
|
|
|
|
VTKStructuredGridReader.h
|
|
|
|
VTKStructuredPointsReader.h
|
|
|
|
VTKUnstructuredGridReader.h
|
2023-03-13 20:13:21 +00:00
|
|
|
VTKVisItFileReader.h
|
2020-12-25 23:02:08 +00:00
|
|
|
)
|
2020-04-28 11:13:27 +00:00
|
|
|
|
2019-11-22 22:40:09 +00:00
|
|
|
set(template_sources
|
|
|
|
PixelTypes.hxx
|
2020-12-25 23:02:08 +00:00
|
|
|
)
|
2019-11-22 22:40:09 +00:00
|
|
|
|
2020-04-28 11:13:27 +00:00
|
|
|
set(sources
|
2021-10-14 18:38:52 +00:00
|
|
|
BOVDataSetReader.cxx
|
2020-04-28 11:13:27 +00:00
|
|
|
DecodePNG.cxx
|
|
|
|
EncodePNG.cxx
|
2021-10-14 18:38:52 +00:00
|
|
|
FileUtils.cxx
|
2020-05-28 22:49:28 +00:00
|
|
|
ImageReaderBase.cxx
|
|
|
|
ImageReaderPNG.cxx
|
|
|
|
ImageReaderPNM.cxx
|
2020-05-28 20:36:15 +00:00
|
|
|
ImageUtils.cxx
|
2020-05-29 01:00:33 +00:00
|
|
|
ImageWriterBase.cxx
|
|
|
|
ImageWriterPNG.cxx
|
|
|
|
ImageWriterPNM.cxx
|
2022-08-23 01:54:49 +00:00
|
|
|
PixelTypes.cxx
|
2020-05-19 19:04:12 +00:00
|
|
|
VTKDataSetReader.cxx
|
2022-01-20 17:27:29 +00:00
|
|
|
VTKDataSetReaderBase.cxx
|
2020-05-19 19:29:04 +00:00
|
|
|
VTKDataSetWriter.cxx
|
2020-05-19 19:04:12 +00:00
|
|
|
VTKPolyDataReader.cxx
|
2022-01-20 17:27:29 +00:00
|
|
|
VTKRectilinearGridReader.cxx
|
2020-05-19 19:04:12 +00:00
|
|
|
VTKStructuredGridReader.cxx
|
|
|
|
VTKStructuredPointsReader.cxx
|
|
|
|
VTKUnstructuredGridReader.cxx
|
2023-03-13 20:13:21 +00:00
|
|
|
VTKVisItFileReader.cxx
|
2020-05-19 21:04:08 +00:00
|
|
|
)
|
2015-10-22 21:18:33 +00:00
|
|
|
|
2020-12-25 23:02:08 +00:00
|
|
|
if (VTKm_ENABLE_HDF5_IO)
|
|
|
|
set(headers
|
|
|
|
${headers}
|
2021-01-04 16:04:08 +00:00
|
|
|
ImageReaderHDF5.h
|
|
|
|
ImageWriterHDF5.h)
|
2021-10-14 18:38:52 +00:00
|
|
|
set(sources
|
2021-10-14 20:42:02 +00:00
|
|
|
${sources}
|
2021-01-04 16:04:08 +00:00
|
|
|
ImageReaderHDF5.cxx
|
|
|
|
ImageWriterHDF5.cxx)
|
2020-12-25 23:02:08 +00:00
|
|
|
endif ()
|
|
|
|
|
2019-11-22 22:40:09 +00:00
|
|
|
vtkm_declare_headers(
|
|
|
|
${headers}
|
|
|
|
${template_sources}
|
|
|
|
)
|
2015-10-22 21:18:33 +00:00
|
|
|
|
2019-11-22 22:40:09 +00:00
|
|
|
vtkm_library(
|
|
|
|
NAME vtkm_io
|
|
|
|
SOURCES ${sources}
|
2020-05-19 21:04:08 +00:00
|
|
|
DEVICE_SOURCES ${device_sources}
|
2019-11-22 22:40:09 +00:00
|
|
|
HEADERS ${headers}
|
|
|
|
TEMPLATE_SOURCES ${template_sources}
|
|
|
|
)
|
2020-04-28 11:13:27 +00:00
|
|
|
|
2020-12-25 23:02:08 +00:00
|
|
|
if (VTKm_ENABLE_HDF5_IO)
|
2021-01-14 21:23:05 +00:00
|
|
|
target_include_directories(vtkm_io PRIVATE $<BUILD_INTERFACE:${HDF5_INCLUDE_DIR}>)
|
2022-07-01 21:24:45 +00:00
|
|
|
target_link_libraries(vtkm_io PRIVATE ${HDF5_HL_LIBRARIES} ${HDF5_LIBRARIES})
|
2024-05-09 00:05:44 +00:00
|
|
|
if (VTKm_HDF5_IS_PARALLEL)
|
|
|
|
target_link_libraries(vtkm_io PRIVATE MPI::MPI_CXX)
|
|
|
|
endif()
|
2020-12-25 23:02:08 +00:00
|
|
|
endif()
|
2021-01-14 21:23:05 +00:00
|
|
|
|
2015-11-17 16:32:19 +00:00
|
|
|
add_subdirectory(internal)
|