]> Creatis software - crea.git/blob - cmake/LIBRARY_NAMEDLLImportExport.h.in
038f1ec8380d3a37eb811a49b6109fe87bdffab9
[crea.git] / cmake / LIBRARY_NAMEDLLImportExport.h.in
1 #ifndef __@LIBRARY_NAME@DLLImportExport_h_INCLUDED__
2 #define __@LIBRARY_NAME@DLLImportExport_h_INCLUDED__
3
4 // Automatically generated file which defines 
5 // the symbols @LIBRARY_NAME@_EXPORT and @LIBRARY_NAME@_CDECL
6 // to be used for the definition of classes or functions
7 // which must be exported when the lib is built as a shared lib on Windows
8 // and imported when the shared lib is used by another program
9
10 #if defined(_WIN32) && defined (@LIBRARY_NAME@_BUILD_SHARED)
11   #ifdef @LIBRARY_NAME@_EXPORT_SYMBOLS
12     #define @LIBRARY_NAME@_EXPORT __declspec( dllexport )
13 #else
14     #define @LIBRARY_NAME@_EXPORT __declspec( dllimport )
15   #endif
16   #define @LIBRARY_NAME@_CDECL __cdecl
17 #else
18   #define @LIBRARY_NAME@_EXPORT
19   #define @LIBRARY_NAME@_CDECL
20 #endif // defined(_WIN32)
21
22 #endif
23