summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Friedrichsmeier <thomas.friedrichsmeier@ruhr-uni-bochum.de>2016-03-16 09:57:34 (GMT)
committerThomas Friedrichsmeier <thomas.friedrichsmeier@ruhr-uni-bochum.de>2016-03-16 09:57:34 (GMT)
commitdf0c41212fad2ade6f73b103e57062f99ae20de9 (patch)
tree7509daa5d82a8e813ced5b1d8b868af0de2a0e9b
parent1335d67259191d8b2949be3e1816f65075ea50ca (diff)
Fix build with MinGW on Windows.
REVIEW: 127328
-rw-r--r--CMakeLists.txt1
-rw-r--r--interfaces/viewerinterface.h2
-rw-r--r--mobile/components/CMakeLists.txt3
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e17bc25..5375e3b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -306,6 +306,7 @@ add_library(okularpart SHARED ${okularpart_SRCS})
generate_export_header(okularpart BASE_NAME okularpart)
target_link_libraries(okularpart okularcore Qt5::Svg KF5::Parts ${MATH_LIB} Phonon::phonon4qt5 KF5::Solid KF5::KDELibs4Support KF5::Wallet KF5::Archive)
+set_target_properties(okularpart PROPERTIES PREFIX "")
if (Qt5TextToSpeech_FOUND)
target_link_libraries(okularpart Qt5::TextToSpeech)
diff --git a/interfaces/viewerinterface.h b/interfaces/viewerinterface.h
index e9e76a2..9a16ea4 100644
--- a/interfaces/viewerinterface.h
+++ b/interfaces/viewerinterface.h
@@ -11,7 +11,7 @@
#define _OKULAR_VIEWERINTERFACE_H_
#include "../core/okularcore_export.h"
-#ifdef _MSC_VER
+#ifdef Q_OS_WIN
#define VIEWERINTERFACE_EXPORT __declspec(dllexport)
#else
#define VIEWERINTERFACE_EXPORT OKULARCORE_EXPORT
diff --git a/mobile/components/CMakeLists.txt b/mobile/components/CMakeLists.txt
index e09326a..a345102 100644
--- a/mobile/components/CMakeLists.txt
+++ b/mobile/components/CMakeLists.txt
@@ -20,9 +20,8 @@ set(okular_SRCS
kconfig_add_kcfg_files(okular_SRCS ${CMAKE_SOURCE_DIR}/conf/settings.kcfgc )
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/settings.cpp PROPERTIES COMPILE_DEFINITIONS "okularpart_EXPORTS")
-
add_library(okularplugin SHARED ${okular_SRCS})
+set_target_properties(okularplugin PROPERTIES COMPILE_DEFINITIONS "okularpart_EXPORTS")
target_link_libraries(okularplugin
Qt5::Quick
Qt5::Qml