diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9fb03e3..f4485f8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,6 +3,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) +set(BUILD_SHARED_LIBS ON) find_package(QT NAMES Qt6 Qt5 COMPONENTS Gui REQUIRED) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Gui REQUIRED) diff --git a/src/qtacrylichelper_global.h b/src/qtacrylichelper_global.h index 9b973c5..27881b2 100644 --- a/src/qtacrylichelper_global.h +++ b/src/qtacrylichelper_global.h @@ -27,19 +27,19 @@ #include #ifndef QTACRYLICHELPER_API -#ifdef QTACRYLICHELPER_STATIC -#define QTACRYLICHELPER_API -#else -#ifdef QTACRYLICHELPER_BUILD_LIBRARY -#define QTACRYLICHELPER_API Q_DECL_EXPORT -#else -#define QTACRYLICHELPER_API Q_DECL_IMPORT -#endif -#endif + #ifdef QTACRYLICHELPER_STATIC + #define QTACRYLICHELPER_API + #else + #ifdef QTACRYLICHELPER_BUILD_LIBRARY + #define QTACRYLICHELPER_API Q_DECL_EXPORT + #else + #define QTACRYLICHELPER_API Q_DECL_IMPORT + #endif + #endif #endif #if defined(Q_OS_WIN) && !defined(Q_OS_WINDOWS) -#define Q_OS_WINDOWS + #define Q_OS_WINDOWS #endif #ifndef Q_DISABLE_MOVE @@ -55,7 +55,7 @@ #endif #if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0)) -#define qAsConst(i) std::as_const(i) + #define qAsConst(i) std::as_const(i) #endif namespace _qam::Global {