diff options
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/iconfix/CMakeLists.txt | 9 | ||||
-rw-r--r-- | libraries/iconfix/xdgicon.h | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/libraries/iconfix/CMakeLists.txt b/libraries/iconfix/CMakeLists.txt index 4dfc39a9..6a99effe 100644 --- a/libraries/iconfix/CMakeLists.txt +++ b/libraries/iconfix/CMakeLists.txt @@ -12,7 +12,10 @@ internal/qiconloader.cpp internal/qiconloader_p.h ) -add_library(iconfix STATIC ${ICONFIX_SOURCES}) -target_include_directories(iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +add_library(MultiMC_iconfix SHARED ${ICONFIX_SOURCES}) +target_include_directories(MultiMC_iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}" ) -qt5_use_modules(iconfix Core Widgets) +qt5_use_modules(MultiMC_iconfix Core Widgets) + +set_target_properties(MultiMC_iconfix PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1) +generate_export_header(MultiMC_iconfix) diff --git a/libraries/iconfix/xdgicon.h b/libraries/iconfix/xdgicon.h index 9c11683a..df8f026e 100644 --- a/libraries/iconfix/xdgicon.h +++ b/libraries/iconfix/xdgicon.h @@ -31,7 +31,9 @@ #include <QString> #include <QStringList> -class XdgIcon +#include "multimc_iconfix_export.h" + +class MULTIMC_ICONFIX_EXPORT XdgIcon { public: static QIcon fromTheme(const QString &iconName, const QIcon &fallback = QIcon()); |