fix Windows build libmygpo-qt5 (#5581)
This commit is contained in:
parent
b52c99755d
commit
09c4b05ec5
4
3rdparty/libmygpo-qt5/src/mygpo_export.h
vendored
4
3rdparty/libmygpo-qt5/src/mygpo_export.h
vendored
@ -25,7 +25,7 @@
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#ifndef MYGPO_EXPORT
|
||||
#ifndef MYGPO_STATIC
|
||||
# if defined(MYGPO_MAKEDLL)
|
||||
/* We are building this library */
|
||||
# define MYGPO_EXPORT Q_DECL_EXPORT
|
||||
@ -33,6 +33,8 @@
|
||||
/* We are using this library */
|
||||
# define MYGPO_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define MYGPO_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // MYGPO_EXPORT_H
|
||||
|
@ -406,6 +406,7 @@ if(LIBMYGPO_QT5_FOUND)
|
||||
set(MYGPOQT5_LIBRARIES ${LIBMYGPO_QT5_LIBRARIES})
|
||||
set(MYGPOQT5_INCLUDE_DIRS ${LIBMYGPO_QT5_INCLUDE_DIRS})
|
||||
else()
|
||||
add_definitions(-DMYGPO_STATIC)
|
||||
add_subdirectory(3rdparty/libmygpo-qt5)
|
||||
set(MYGPOQT5_LIBRARIES mygpo-qt5)
|
||||
set(MYGPOQT5_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libmygpo-qt5/src)
|
||||
|
Loading…
x
Reference in New Issue
Block a user