diff src/CMakeLists.txt @ 10:7f26b0293e1d

Fix windows build
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 22 Mar 2016 16:45:17 +0100
parents 93d3106bb9a4
children 0b66b10a287d
line wrap: on
line diff
--- a/src/CMakeLists.txt	Tue Mar 22 16:45:08 2016 +0100
+++ b/src/CMakeLists.txt	Tue Mar 22 16:45:17 2016 +0100
@@ -42,10 +42,24 @@
     ${TRANSLATION_SRC}
 )
 
+if (WIN32)
+   get_target_property(_loc Qt5::Widgets LOCATION)
+   get_filename_component(_qtpath ${_loc} PATH)
+   set(EXTRA_STATIC_LIBS
+       -L${_qtpath}
+       -lpcre16
+       Qt5::QWindowsIntegrationPlugin
+       -lwinspool -lshlwapi
+       -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm
+       -lglu32 -lopengl32 -lgdi32 -lQt5Core -lole32 -lmstask -luuid -lws2_32
+       -ladvapi32 -lshell32 -luser32 -lkernel32 )
+endif()
+
 target_link_libraries(${PROJECT_NAME}
     Qt5::Core
     Qt5::Gui
     ${PROJECT_NAME}_libqtxslx
+    ${EXTRA_STATIC_LIBS}
 )
 
 if (WIN32)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)