CMake: adds VTKm_ENABLE_TESTING_LIB
This commit is contained in:
parent
bc9e881842
commit
b83b4f8880
@ -97,6 +97,11 @@ if (NOT DEFINED VTKm_ENABLE_TESTING)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# By default: VTKm_ENABLE_TESTING -> VTKm_ENABLE_TESTING_LIB
|
||||||
|
include(CMakeDependentOption)
|
||||||
|
cmake_dependent_option(VTKm_ENABLE_TESTING_LIBRARY "Enable VTKm Testing Library" OFF "NOT VTKm_ENABLE_TESTING" ON)
|
||||||
|
mark_as_advanced(VTKm_ENABLE_TESTING_LIB)
|
||||||
|
|
||||||
vtkm_option(VTKm_USE_DOUBLE_PRECISION "Use double precision for floating point calculations" OFF)
|
vtkm_option(VTKm_USE_DOUBLE_PRECISION "Use double precision for floating point calculations" OFF)
|
||||||
vtkm_option(VTKm_USE_64BIT_IDS "Use 64-bit indices." ON)
|
vtkm_option(VTKm_USE_64BIT_IDS "Use 64-bit indices." ON)
|
||||||
|
|
||||||
|
@ -319,6 +319,6 @@ if(TARGET vtkm_loguru)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
if (VTKm_ENABLE_TESTING)
|
if(VTKm_ENABLE_TESTING_LIBRARY)
|
||||||
add_subdirectory(testing)
|
add_subdirectory(testing)
|
||||||
endif ()
|
endif()
|
||||||
|
@ -112,13 +112,15 @@ vtkm_library(
|
|||||||
)
|
)
|
||||||
target_link_libraries(vtkm_cont_testing PUBLIC vtkm_cont)
|
target_link_libraries(vtkm_cont_testing PUBLIC vtkm_cont)
|
||||||
|
|
||||||
vtkm_unit_tests(SOURCES ${unit_tests} DEFINES VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG)
|
if(VTKm_ENABLE_TESTING)
|
||||||
|
vtkm_unit_tests(SOURCES ${unit_tests} DEFINES VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG)
|
||||||
|
|
||||||
# add distributed tests i.e. test to run with MPI
|
# add distributed tests i.e. test to run with MPI
|
||||||
# if MPI is enabled.
|
# if MPI is enabled.
|
||||||
set(mpi_unit_tests
|
set(mpi_unit_tests
|
||||||
UnitTestFieldRangeGlobalCompute.cxx
|
UnitTestFieldRangeGlobalCompute.cxx
|
||||||
UnitTestSerializationArrayHandle.cxx
|
UnitTestSerializationArrayHandle.cxx
|
||||||
UnitTestSerializationDataSet.cxx
|
UnitTestSerializationDataSet.cxx
|
||||||
)
|
)
|
||||||
vtkm_unit_tests(MPI SOURCES ${mpi_unit_tests} DEFINES VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG)
|
vtkm_unit_tests(MPI SOURCES ${mpi_unit_tests} DEFINES VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user