CMakeLists.txt

changeset 52
ff7b3a41c9b5
parent 49
29cf6e350063
child 56
eb6c564192f4
equal deleted inserted replaced
51:355100088e1f 52:ff7b3a41c9b5
69 INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/src") # In case of out-of-source build. 69 INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/src") # In case of out-of-source build.
70 70
71 # ===== Find Qt5 ===== 71 # ===== Find Qt5 =====
72 72
73 # Minimum versio 5.13 for debug messages. 73 # Minimum versio 5.13 for debug messages.
74 find_package(Qt5 5.13 REQUIRED COMPONENTS Core Widgets Network Sql LinguistTools) 74 find_package(Qt5 5.13 REQUIRED COMPONENTS Core Widgets Network Sql LinguistTools PrintSupport)
75 75
76 # PrintSupport Xml LinguistTools 76 # PrintSupport Xml LinguistTools
77 77
78 # Some extra files for the "make clean" target. 78 # Some extra files for the "make clean" target.
79 SET_PROPERTY( 79 SET_PROPERTY(
119 ${SRCDIR}/EditProfileWater.cpp 119 ${SRCDIR}/EditProfileWater.cpp
120 ${SRCDIR}/ProfileMashs.cpp 120 ${SRCDIR}/ProfileMashs.cpp
121 ${SRCDIR}/EditProfileMash.cpp 121 ${SRCDIR}/EditProfileMash.cpp
122 ${SRCDIR}/Setup.cpp 122 ${SRCDIR}/Setup.cpp
123 ${SRCDIR}/Utils.cpp 123 ${SRCDIR}/Utils.cpp
124 ${SRCDIR}/PrinterDialog.cpp
124 ${SRCDIR}/MainWindow.cpp 125 ${SRCDIR}/MainWindow.cpp
125 ${SRCDIR}/database/database.cpp 126 ${SRCDIR}/database/database.cpp
126 ${SRCDIR}/nulldateedit.cpp 127 ${SRCDIR}/nulldateedit.cpp
127 ) 128 )
128 129
147 ${SRCDIR}/EditProfileWater.h 148 ${SRCDIR}/EditProfileWater.h
148 ${SRCDIR}/ProfileMashs.h 149 ${SRCDIR}/ProfileMashs.h
149 ${SRCDIR}/EditProfileMash.h 150 ${SRCDIR}/EditProfileMash.h
150 ${SRCDIR}/Setup.h 151 ${SRCDIR}/Setup.h
151 ${SRCDIR}/Utils.h 152 ${SRCDIR}/Utils.h
153 ${SRCDIR}/PrinterDialog.h
152 ${SRCDIR}/MainWindow.h 154 ${SRCDIR}/MainWindow.h
153 ${SRCDIR}/database/database.h 155 ${SRCDIR}/database/database.h
154 ${SRCDIR}/nulldateedit.h 156 ${SRCDIR}/nulldateedit.h
155 ) 157 )
156 158
204 message("** update qm files") 206 message("** update qm files")
205 qt5_add_translation(QM_FILES ${TS_FILES}) 207 qt5_add_translation(QM_FILES ${TS_FILES})
206 endif() 208 endif()
207 209
208 add_executable(${bmsapp_EXECUTABLE} ${SOURCE_FILES} ${QM_FILES}) 210 add_executable(${bmsapp_EXECUTABLE} ${SOURCE_FILES} ${QM_FILES})
209 target_link_libraries(${bmsapp_EXECUTABLE} Qt5::Core Qt5::Widgets Qt5::Network Qt5::Sql) 211 target_link_libraries(${bmsapp_EXECUTABLE} Qt5::Core Qt5::Widgets Qt5::Network Qt5::Sql Qt5::PrintSupport)
210 212
211 # `make translations' 213 # `make translations'
212 add_custom_target(translations DEPENDS ${QM_FILES}) 214 add_custom_target(translations DEPENDS ${QM_FILES})
213 215
214 216

mercurial