mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
63ef84ed78
As we remove more and more virtual methods from VTK-m, I expect several users will be interested in completely removing them from the build for several reasons. 1. They may be compiling for hardware that does not support virtual methods. 2. They may need to compile for CUDA but need shared libraries. 3. It should go a bit faster. To enable this, a CMake option named `VTKm_NO_DEPRECATED_VIRTUAL` is added. It defaults to `OFF`. But when it is `ON`, none of the code that both uses virtuals and is deprecated will be built. Currently, only `ArrayHandleVirtual` is deprecated, so the rest of the virtual classes will still be built. As we move forward, more will be removed until all virtual method functionality is removed.
32 lines
1.2 KiB
CMake
32 lines
1.2 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.
|
|
##============================================================================
|
|
|
|
set(unit_tests
|
|
UnitTestSerialArrayHandle.cxx
|
|
UnitTestSerialArrayHandleFancy.cxx
|
|
UnitTestSerialArrayHandleMultiplexer.cxx
|
|
UnitTestSerialBitField.cxx
|
|
UnitTestSerialCellLocatorRectilinearGrid.cxx
|
|
UnitTestSerialCellLocatorUniformBins.cxx
|
|
UnitTestSerialCellLocatorUniformGrid.cxx
|
|
UnitTestSerialComputeRange.cxx
|
|
UnitTestSerialColorTable.cxx
|
|
UnitTestSerialDataSetExplicit.cxx
|
|
UnitTestSerialDataSetSingleType.cxx
|
|
UnitTestSerialDeviceAdapter.cxx
|
|
UnitTestSerialImplicitFunction.cxx
|
|
UnitTestSerialPointLocatorUniformGrid.cxx
|
|
UnitTestSerialVirtualObjectHandle.cxx
|
|
)
|
|
vtkm_unit_tests(SOURCES ${unit_tests}
|
|
LABEL "SERIAL"
|
|
DEFINES VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG
|
|
LIBRARIES vtkm_worklet)
|