libkdeconnect: KDECONNECT_EXPORT turned to be import declaration outside of lib.

This commit is contained in:
Alexandr Akulich 2014-04-12 21:54:37 +02:00 committed by Albert Vaca
parent 35757aef8f
commit a6d4dd87be
2 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,8 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR})
add_definitions(-DKDECONNECT_LIBRARY)
set(libkdeconnect_SRC
dbusinterfaces.cpp
devicesmodel.cpp

View file

@ -23,6 +23,10 @@
#include <QtCore/QtGlobal>
#if defined(KDECONNECT_LIBRARY)
#define KDECONNECT_EXPORT Q_DECL_EXPORT
#else
#define KDECONNECT_EXPORT Q_DECL_IMPORT
#endif
#endif