From 0235d77353e2c1d0e655478c0ffdc87769ce6c55 2017-07-05 09:39:07 From: Alexandre Leroux Date: 2017-07-05 09:39:07 Subject: [PATCH] Adds Q_DECL_EXPORT for Amda plugin --- diff --git a/plugins/amda/CMakeLists.txt b/plugins/amda/CMakeLists.txt index 8bc0a90..45d09e4 100644 --- a/plugins/amda/CMakeLists.txt +++ b/plugins/amda/CMakeLists.txt @@ -38,6 +38,9 @@ FILE (GLOB_RECURSE PLUGIN_FILE ${RESOURCES_DIR}/amda.json) # # Compile the library # + +ADD_DEFINITIONS(-DAMDA_LIB) + FILE (GLOB_RECURSE MODULE_SOURCES ${INCLUDES_DIR}/*.h ${SOURCES_DIR}/*.c diff --git a/plugins/amda/include/AmdaGlobal.h b/plugins/amda/include/AmdaGlobal.h new file mode 100644 index 0000000..3e8c0c7 --- /dev/null +++ b/plugins/amda/include/AmdaGlobal.h @@ -0,0 +1,12 @@ +#ifndef SCIQLOP_AMDAGLOBAL_H +#define SCIQLOP_AMDAGLOBAL_H + +#include + +#if defined(AMDA_LIB) +#define SCIQLOP_AMDA_EXPORT Q_DECL_EXPORT +#else +#define SCIQLOP_AMDA_EXPORT Q_DECL_IMPORT +#endif + +#endif // SCIQLOP_AMDAGLOBAL_H