0612be9c5b
Most of this code is not templated methods. Rather, it implements over several types to call templated functions, which creates quite a bit of code. Rather than have all code using a reader recompile the code, just compile it once and put it in a library.
29 lines
893 B
CMake
29 lines
893 B
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(unit_tests
|
|
UnitTestBOVDataSetReader.cxx
|
|
UnitTestPixelTypes.cxx
|
|
UnitTestVTKDataSetReader.cxx
|
|
UnitTestVTKDataSetWriter.cxx
|
|
)
|
|
|
|
set(unit_test_libraries vtkm_lodepng vtkm_io)
|
|
|
|
if(VTKm_ENABLE_RENDERING)
|
|
set(unit_tests ${unit_tests}
|
|
UnitTestImageWriter.cxx
|
|
)
|
|
|
|
set(unit_test_libraries ${unit_test_libraries} vtkm_rendering)
|
|
endif()
|
|
|
|
vtkm_unit_tests(SOURCES ${unit_tests} ALL_BACKENDS LIBRARIES ${unit_test_libraries})
|