-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsenseiConfig.h.in
43 lines (39 loc) · 1.16 KB
/
senseiConfig.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef sensei_config_h
#define sensei_config_h
#define SENSEI_VERSION "@SENSEI_VERSION@"
#define SENSEI_VERSION_MAJOR @SENSEI_VERSION_MAJOR@
#define SENSEI_VERSION_MINOR @SENSEI_VERSION_MINOR@
#define SENSEI_VERSION_PATCH @SENSEI_VERSION_PATCH@
#cmakedefine ENABLE_SENSEI
#cmakedefine ENABLE_PYTHON
#cmakedefine ENABLE_CATALYST
#cmakedefine ENABLE_CATALYST_PYTHON
#cmakedefine ENABLE_LIBSIM
#cmakedefine ENABLE_ADIOS
#cmakedefine ENABLE_VTK_GENERIC_ARRAYS
#cmakedefine ENABLE_VTK_MPI
#cmakedefine ENABLE_VTK_IO
#cmakedefine ENABLE_VTK_M
#ifdef __cplusplus
// hide some differences betweem VisIt's VTK and more modern versions
#include <vtkSetGet.h>
#if defined(ENABLE_LIBSIM)
#define senseiBaseTypeMacro(a1, a2) vtkTypeMacro(a1, a2)
#define senseiTypeMacro(a1, a2) vtkTypeMacro(a1, a2)
#define senseiNewMacro(a1) \
a1 *a1::New() \
{ \
vtkObjectBase* ret = vtkObjectFactory::CreateInstance(#a1); \
if(ret) \
{ \
return static_cast<a1*>(ret); \
} \
return new a1; \
}
#else
#define senseiBaseTypeMacro(a1, a2) vtkBaseTypeMacro(a1, a2)
#define senseiTypeMacro(a1, a2) vtkTypeMacro(a1, a2)
#define senseiNewMacro(a1) vtkStandardNewMacro(a1)
#endif
#endif
#endif