mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
NOISSUE fix librainbow
This commit is contained in:
parent
cc4d0a0a8e
commit
e5f7676622
@ -13,8 +13,9 @@ include/rainbow.h
|
||||
src/rainbow.cpp
|
||||
)
|
||||
|
||||
add_definitions(-DRAINBOW_LIBRARY)
|
||||
#add_definitions(-DRAINBOW_LIBRARY)
|
||||
add_definitions(-DRAINBOW_STATIC)
|
||||
set(RAINBOW_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE)
|
||||
add_library(rainbow SHARED ${RAINBOW_SOURCES})
|
||||
add_library(rainbow STATIC ${RAINBOW_SOURCES})
|
||||
|
||||
qt5_use_modules(rainbow Core Gui)
|
||||
|
@ -15,8 +15,12 @@
|
||||
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#ifdef RAINBOW_LIBRARY
|
||||
#define RAINBOW_EXPORT Q_DECL_EXPORT
|
||||
#ifdef RAINBOW_STATIC
|
||||
#define RAINBOW_EXPORT
|
||||
#else
|
||||
#define RAINBOW_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
#ifdef RAINBOW_LIBRARY
|
||||
#define RAINBOW_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define RAINBOW_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user