vtkmConfigFilters.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: ObjectFactory.cxx
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkConfigFilters_h
16 #define vtkConfigFilters_h
17 
18 /*--------------------------------------------------------------------------*/
19 /* Other Configuration Options */
20 
22 #include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
23 
24 
25 /*--------------------------------------------------------------------------*/
26 /* Make sure we use the same id's in VTK and VTK-m */
27 #include "vtkType.h"
28 #ifdef VTK_USE_64BIT_IDS
29 # ifndef VTKM_USE_64BIT_IDS
30 # error VTK was defined with 64-bit ids but VTK-m with 32-bit ids.
31 # endif
32 #else // !VTK_USE_64BIT_IDS
33 # ifdef VTKM_USE_64BIT_IDS
34 # error VTK was defined with 32-bit ids but VTK-m with 64-bit ids.
35 # endif
36 #endif
37 
38 
39 #ifndef VTKACCELERATORSVTKMFILTERSFILTERS_TEMPLATE_EXPORT
40 # if !defined(VTKACCELERATORSVTKMFILTERSFILTERS_STATIC_DEFINE) && defined(_MSC_VER)
41  /* Warning C4910 on windows state that extern explicit template can't be
42  labeled with __declspec(dllexport). So that is why we use a new custom
43  define. But when other modules ( e.g. rendering ) include this header
44  we need them to see that the extern template is actually being imported.
45  */
46  /* We are building this library with MSVC */
47 # define VTKACCELERATORSVTKMFILTERSFILTERS_TEMPLATE_EXPORT
48 # else
49  /* Defer to the config module */
50 # define VTKACCELERATORSVTKMFILTERSFILTERS_TEMPLATE_EXPORT VTKACCELERATORSVTKMFILTERSFILTERS_EXPORT
51 # endif
52 #endif
53 
54 
55 #endif // vtkConfigFilters_h