Add missing PUBLIC keyword and change LIBXISF_STATIC_LIB define
This commit is contained in:
+2
-1
@@ -30,7 +30,8 @@ target_link_libraries(XISF PUBLIC Qt${QT_VERSION_MAJOR}::Core)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(XISF PRIVATE LIBXISF_LIBRARY)
|
||||
target_compile_definitions(XISF LIBXISF_SHARED_LIB)
|
||||
else(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(XISF PUBLIC LIBXISF_STATIC_LIB)
|
||||
endif(BUILD_SHARED_LIBS)
|
||||
|
||||
set(XISF_PUBLIC_HEADERS libxisf.h libXISF_global.h)
|
||||
|
||||
+3
-3
@@ -21,14 +21,14 @@
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#ifdef LIBXISF_SHARED_LIB
|
||||
#ifdef LIBXISF_STATIC_LIB
|
||||
# define LIBXISF_EXPORT
|
||||
#else
|
||||
# if defined(LIBXISF_LIBRARY)
|
||||
# define LIBXISF_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define LIBXISF_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define LIBXISF_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // LIBXISF_GLOBAL_H
|
||||
|
||||
Reference in New Issue
Block a user