comparison 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
comparison
equal deleted inserted replaced
9:997e8b31f19d 10:7f26b0293e1d
40 ${_add_executable_params} 40 ${_add_executable_params}
41 ${APPLICATION_SRC} 41 ${APPLICATION_SRC}
42 ${TRANSLATION_SRC} 42 ${TRANSLATION_SRC}
43 ) 43 )
44 44
45 if (WIN32)
46 get_target_property(_loc Qt5::Widgets LOCATION)
47 get_filename_component(_qtpath ${_loc} PATH)
48 set(EXTRA_STATIC_LIBS
49 -L${_qtpath}
50 -lpcre16
51 Qt5::QWindowsIntegrationPlugin
52 -lwinspool -lshlwapi
53 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm
54 -lglu32 -lopengl32 -lgdi32 -lQt5Core -lole32 -lmstask -luuid -lws2_32
55 -ladvapi32 -lshell32 -luser32 -lkernel32 )
56 endif()
57
45 target_link_libraries(${PROJECT_NAME} 58 target_link_libraries(${PROJECT_NAME}
46 Qt5::Core 59 Qt5::Core
47 Qt5::Gui 60 Qt5::Gui
48 ${PROJECT_NAME}_libqtxslx 61 ${PROJECT_NAME}_libqtxslx
62 ${EXTRA_STATIC_LIBS}
49 ) 63 )
50 64
51 if (WIN32) 65 if (WIN32)
52 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode") 66 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode")
53 endif(WIN32) 67 endif(WIN32)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)