Mercurial > clickerconvert
changeset 10:7f26b0293e1d
Fix windows build
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 22 Mar 2016 16:45:17 +0100 |
parents | 997e8b31f19d |
children | 79771751d0dc |
files | src/CMakeLists.txt |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
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)