vtk-m/vtkm/testing/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

69 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.
##============================================================================
if(VTKm_ENABLE_TESTING)
set(unit_tests
UnitTestArrayPortalBasic.cxx
UnitTestArrayPortalValueReference.cxx
UnitTestBinaryPredicates.cxx
UnitTestBinaryOperators.cxx
UnitTestBounds.cxx
UnitTestCellShape.cxx
UnitTestConfigureFor32.cxx
UnitTestConfigureFor64.cxx
UnitTestDeprecated.cxx
UnitTestExceptions.cxx
#UnitTestFunctionInterface.cxx #FIXME
UnitTestHash.cxx
UnitTestList.cxx
UnitTestMatrix.cxx
UnitTestNewtonsMethod.cxx
UnitTestNoAssert.cxx
UnitTestPair.cxx
UnitTestRange.cxx
UnitTestTesting.cxx
UnitTestTransform3D.cxx
UnitTestTuple.cxx
UnitTestTypeList.cxx
UnitTestTypes.cxx
UnitTestTypeTraits.cxx
UnitTestUnaryPredicates.cxx
UnitTestVecAxisAlignedPointCoordinates.cxx
UnitTestVecFromPortal.cxx
UnitTestVecFromPortalPermute.cxx
UnitTestVectorAnalysis.cxx
UnitTestVecFlat.cxx
UnitTestVecTraits.cxx
UnitTestVecVariable.cxx
)
# Unit tests that have device-specific code to be tested
set(unit_tests_device
UnitTestAtomic.cxx
UnitTestGeometry.cxx
UnitTestLowerBound.cxx
UnitTestMath.cxx
UnitTestUpperBound.cxx
)
#variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
set_source_files_properties(UnitTestBounds.cxx PROPERTIES
COMPILE_OPTIONS "$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:GNU>>:-fno-var-tracking-assignments>")
vtkm_unit_tests(SOURCES ${unit_tests})
vtkm_unit_tests(
NAME UnitTests_vtkm_testing_device
DEVICE_SOURCES ${unit_tests_device}
ALL_BACKENDS
)
endif()