-
Notifications
You must be signed in to change notification settings - Fork 6
/
vtkLocalConfigure.h.in
33 lines (29 loc) · 1.32 KB
/
vtkLocalConfigure.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
/*=========================================================================
This source has no copyright. It is intended to be copied by users
wishing to create their own VTK classes locally.
=========================================================================*/
#ifndef __vtk@PROJECT_NAME@Configure_h
#define __vtk@PROJECT_NAME@Configure_h
// Define @PROJECT_NAME_UPPER@_SHARED if the library was built shared.
#if @VTKLOCAL_BUILD_SHARED_LIBS_CONFIG@
# define @PROJECT_NAME_UPPER@_SHARED
#endif
// Disable warning caused from static VTK and shared @PROJECT_NAME@.
#if defined(_MSC_VER) && defined(@PROJECT_NAME_UPPER@_SHARED)
# pragma warning (disable: 4275) /* non-DLL-interface base class used */
#endif
// Setup export/import macro for DLL. The symbol
// "@LIB_NAME@_EXPORTS" is defined by CMake when building source
// files for a shared library named "@LIB_NAME@". For these
// sources we should export if building a shared library. For other
// sources we should import if using a shared library.
#if defined(_WIN32) && defined(@PROJECT_NAME_UPPER@_SHARED)
# if defined(@LIB_NAME@_EXPORTS)
# define VTK_@PROJECT_NAME_UPPER@_EXPORT __declspec(dllexport)
# else
# define VTK_@PROJECT_NAME_UPPER@_EXPORT __declspec(dllimport)
# endif
#else
# define VTK_@PROJECT_NAME_UPPER@_EXPORT
#endif
#endif // __vtk@PROJECT_NAME@Configure_h