2014-02-10 18:58:41 +00:00
|
|
|
##============================================================================
|
|
|
|
## Copyright (c) Kitware, Inc.
|
|
|
|
## All rights reserved.
|
|
|
|
## See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
##
|
2014-02-10 18:58:41 +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.
|
|
|
|
##============================================================================
|
|
|
|
|
2021-10-01 17:17:13 +00:00
|
|
|
if(VTKm_ENABLE_TESTING)
|
|
|
|
set(unit_tests
|
2022-02-16 12:50:39 +00:00
|
|
|
UnitTestArrayPortalBasic.cxx
|
|
|
|
UnitTestArrayPortalValueReference.cxx
|
2021-10-01 17:17:13 +00:00
|
|
|
UnitTestBinaryPredicates.cxx
|
|
|
|
UnitTestBinaryOperators.cxx
|
|
|
|
UnitTestBounds.cxx
|
|
|
|
UnitTestCellShape.cxx
|
2022-02-16 12:50:39 +00:00
|
|
|
UnitTestConfigureFor32.cxx
|
|
|
|
UnitTestConfigureFor64.cxx
|
2021-10-01 17:17:13 +00:00
|
|
|
UnitTestDeprecated.cxx
|
|
|
|
UnitTestExceptions.cxx
|
2022-02-16 12:50:39 +00:00
|
|
|
#UnitTestFunctionInterface.cxx #FIXME
|
2021-10-01 17:17:13 +00:00
|
|
|
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
|
|
|
|
)
|
2014-02-10 18:58:41 +00:00
|
|
|
|
2021-10-01 17:17:13 +00:00
|
|
|
# Unit tests that have device-specific code to be tested
|
|
|
|
set(unit_tests_device
|
|
|
|
UnitTestAtomic.cxx
|
|
|
|
UnitTestGeometry.cxx
|
|
|
|
UnitTestLowerBound.cxx
|
|
|
|
UnitTestMath.cxx
|
|
|
|
UnitTestUpperBound.cxx
|
|
|
|
)
|
2020-08-18 16:33:31 +00:00
|
|
|
|
2020-07-09 13:10:54 +00:00
|
|
|
|
2021-10-01 17:17:13 +00:00
|
|
|
#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>")
|
2020-07-09 13:10:54 +00:00
|
|
|
|
2021-10-01 17:17:13 +00:00
|
|
|
vtkm_unit_tests(SOURCES ${unit_tests})
|
2020-08-18 16:33:31 +00:00
|
|
|
|
2022-07-06 19:36:00 +00:00
|
|
|
vtkm_unit_tests(
|
|
|
|
NAME UnitTests_vtkm_testing_device
|
|
|
|
DEVICE_SOURCES ${unit_tests_device}
|
|
|
|
ALL_BACKENDS
|
|
|
|
)
|
2021-10-01 17:17:13 +00:00
|
|
|
endif()
|