comparison src/CMakeLists.txt @ 53:a43d8cf2fa95

Various fixes and improvements. Fix windows packaging.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 19 Jul 2016 17:45:57 +0200
parents 36ee5dd46fd3
children 1e6e7699f0b8
comparison
equal deleted inserted replaced
52:263880612637 53:a43d8cf2fa95
38 qt5_create_translation(TRANSLATION_SRC ${FILES_TO_TRANSLATE} 38 qt5_create_translation(TRANSLATION_SRC ${FILES_TO_TRANSLATE}
39 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/main_de_DE.ts) 39 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/main_de_DE.ts)
40 endif() 40 endif()
41 41
42 qt5_add_resources(APPLICATION_SRC icons/icons.qrc) 42 qt5_add_resources(APPLICATION_SRC icons/icons.qrc)
43
44 add_executable(${PROJECT_NAME}
45 ${_add_executable_params}
46 ${APPLICATION_SRC}
47 ${TRANSLATION_SRC}
48 )
49 43
50 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 44 # See: https://bugreports.qt-project.org/browse/QTBUG-35918
51 # extra static libs should be automatically managed but they 45 # extra static libs should be automatically managed but they
52 # are not so we make this here explicitly neccessary. 46 # are not so we make this here explicitly neccessary.
53 # The list is taken from the libs/*.prl file 47 # The list is taken from the libs/*.prl file
95 endif() 89 endif()
96 90
97 if (WIN32) 91 if (WIN32)
98 get_target_property(_loc Qt5::Widgets LOCATION) 92 get_target_property(_loc Qt5::Widgets LOCATION)
99 get_filename_component(_qtpath ${_loc} PATH) 93 get_filename_component(_qtpath ${_loc} PATH)
94 set (_add_executable_params WIN32)
100 set(EXTRA_STATIC_LIBS 95 set(EXTRA_STATIC_LIBS
101 -L${_qtpath} 96 -L${_qtpath}
102 Qt5::QWindowsIntegrationPlugin 97 Qt5::QWindowsIntegrationPlugin
103 -lwinspool -lshlwapi 98 -lwinspool -lshlwapi
104 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm 99 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm
105 -lglu32 -lopengl32 -lgdi32 -lQt5Core -lole32 -lmstask -luuid -lws2_32 100 -lglu32 -lopengl32 -lgdi32 -lQt5Core -lole32 -lmstask -luuid -lws2_32
106 -ladvapi32 -lshell32 -luser32 -lkernel32 -lqtfreetype -lqtharfbuzzng -lpcre16) 101 -ladvapi32 -lshell32 -luser32 -lkernel32 -lqtfreetype -lqtharfbuzzng -lpcre16)
107 endif() 102 endif()
103
104 add_executable(${PROJECT_NAME}
105 ${_add_executable_params}
106 ${APPLICATION_SRC}
107 ${TRANSLATION_SRC}
108 )
108 109
109 target_link_libraries(${PROJECT_NAME} 110 target_link_libraries(${PROJECT_NAME}
110 Qt5::Widgets 111 Qt5::Widgets
111 Qt5::PrintSupport 112 Qt5::PrintSupport
112 ${PROJECT_NAME}_libqtxslx 113 ${PROJECT_NAME}_libqtxslx
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)