| 1 |
set(optionalLibs) |
| 2 |
set(optionalSources) |
| 3 |
option(QTERM_ENABLE_SSH "Build SSH Support" ON) |
| 4 |
option(QTERM_ENABLE_DBUS "Build DBus Support" ON) |
| 5 |
option(QTERM_ENABLE_SCRIPT "Build Script Support" ON) |
| 6 |
option(QTERM_ENABLE_QMEDIAPLAYER "Build QMediaPlayer Support" ON) |
| 7 |
option(QTERM_ENABLE_PHONON "Build Phonon Support" ON) |
| 8 |
option(QTERM_OLD_PHONON "Hack for Outdated Phonon Library" OFF) |
| 9 |
option(QTERM_ENABLE_TEST "Build the tests") |
| 10 |
option(QTERM_ENABLE_SCRIPT_DEBUGGER "Build ScriptDebugger Support") |
| 11 |
|
| 12 |
include(CheckFunctionExists) |
| 13 |
include(CheckLibraryExists) |
| 14 |
|
| 15 |
macro (_install_plugins) |
| 16 |
set(options "") |
| 17 |
set(oneValueArgs "DIRECTORY") |
| 18 |
set(multiValueArgs "MODULES") |
| 19 |
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) |
| 20 |
|
| 21 |
set(plugin_files) |
| 22 |
foreach(MODULE ${ARG_MODULES}) |
| 23 |
if (QT_VERSION_MAJOR VERSION_LESS 6) |
| 24 |
foreach(plugin ${Qt${QT_VERSION_MAJOR}${MODULE}_PLUGINS}) |
| 25 |
get_target_property(_loc ${plugin} LOCATION) |
| 26 |
list(APPEND plugin_files ${_loc}) |
| 27 |
endforeach() |
| 28 |
else () |
| 29 |
get_target_property(_plugins Qt${QT_VERSION_MAJOR}::${MODULE} QT_PLUGINS) |
| 30 |
if (_plugins) |
| 31 |
foreach (_plugin ${_plugins}) |
| 32 |
get_target_property(_loc Qt${QT_VERSION_MAJOR}::${_plugin} LOCATION) |
| 33 |
list(APPEND plugin_files ${_loc}) |
| 34 |
endforeach () |
| 35 |
# CMake targets for plugins missing in Qt < 6.4 |
| 36 |
# https://bugreports.qt.io/browse/QTBUG-94066 |
| 37 |
else () |
| 38 |
get_target_property(_plugin_types Qt${QT_VERSION_MAJOR}::${MODULE} MODULE_PLUGIN_TYPES) |
| 39 |
foreach (_plugin_type ${_plugin_types}) |
| 40 |
file(GLOB _files |
| 41 |
LIST_DIRECTORIES false |
| 42 |
${QT_PLUGINS_DIR}/${_plugin_type}/*) |
| 43 |
list(APPEND plugin_files ${_files}) |
| 44 |
endforeach() |
| 45 |
endif() |
| 46 |
endif() |
| 47 |
endforeach() |
| 48 |
|
| 49 |
foreach(_plugin_file ${plugin_files}) |
| 50 |
get_filename_component(_plugindir ${_plugin_file} PATH) |
| 51 |
get_filename_component(_pluginname ${_plugindir} NAME) |
| 52 |
install(CODE " |
| 53 |
file(COPY ${_plugin_file} DESTINATION \${CMAKE_INSTALL_PREFIX}/${ARG_DIRECTORY}/${_pluginname}) |
| 54 |
" COMPONENT Runtime) |
| 55 |
endforeach() |
| 56 |
endmacro() |
| 57 |
|
| 58 |
check_function_exists("gethostbyname" CMAKE_HAVE_GETHOSTBYNAME) |
| 59 |
if(NOT CMAKE_HAVE_GETHOSTBYNAME) |
| 60 |
check_library_exists("nsl" "gethostbyname" "" CMAKE_LIB_NSL_HAS_GETHOSTBYNAME) |
| 61 |
if(CMAKE_LIB_NSL_HAS_GETHOSTBYNAME) |
| 62 |
set(optionalLibs ${optionalLibs} -lnsl) |
| 63 |
else(CMAKE_LIB_NSL_HAS_GETHOSTBYNAME) |
| 64 |
check_library_exists("bsd" "gethostbyname" "" CMAKE_LIB_BSD_HAS_GETHOSTBYNAME) |
| 65 |
if(CMAKE_LIB_BSD_HAS_GETHOSTBYNAME) |
| 66 |
set(optionalLibs ${optionalLibs} -lbsd) |
| 67 |
endif(CMAKE_LIB_BSD_HAS_GETHOSTBYNAME) |
| 68 |
endif(CMAKE_LIB_NSL_HAS_GETHOSTBYNAME) |
| 69 |
endif(NOT CMAKE_HAVE_GETHOSTBYNAME) |
| 70 |
|
| 71 |
if(QTERM_ENABLE_SSH) |
| 72 |
find_package(OpenSSLCrypto) |
| 73 |
if(OPENSSLCRYPTO_FOUND) |
| 74 |
message(STATUS "OpenSSL found, enable SSH support") |
| 75 |
add_definitions(-DSSH_ENABLED) |
| 76 |
if(QTERM_ENABLE_SSH_DEBUG) |
| 77 |
add_definitions(-DSSH_DEBUG) |
| 78 |
endif() |
| 79 |
add_definitions(-DOPENSSL_API_COMPAT=10100) |
| 80 |
include_directories(${OPENSSLCRYPTO_INCLUDE_DIR}) |
| 81 |
get_filename_component(OPENSSLCRYPTO_ROOT_DIR ${OPENSSLCRYPTO_INCLUDE_DIR} PATH) |
| 82 |
set(optionalLibs ${optionalLibs} ${OPENSSLCRYPTO_LIBRARIES}) |
| 83 |
set(optionalSources ${optionalSources} |
| 84 |
ssh/libcrypto-compat.c |
| 85 |
ssh/key.cpp |
| 86 |
ssh/auth.cpp |
| 87 |
ssh/channel.cpp |
| 88 |
ssh/crc32.cpp |
| 89 |
ssh/kex.cpp |
| 90 |
ssh/packet.cpp |
| 91 |
ssh/socket.cpp |
| 92 |
ssh/transport.cpp) |
| 93 |
endif(OPENSSLCRYPTO_FOUND) |
| 94 |
endif(QTERM_ENABLE_SSH) |
| 95 |
|
| 96 |
if(QTERM_ENABLE_DBUS) |
| 97 |
if(QT_QTDBUS_FOUND) |
| 98 |
message(STATUS "QtDBus module found, enable DBus support") |
| 99 |
add_definitions(-DDBUS_ENABLED) |
| 100 |
include_directories(${QT_QTDBUS_INCLUDE_DIR}) |
| 101 |
set(optionalLibs ${optionalLibs} ${QT_QTDBUS_LIBRARY}) |
| 102 |
set(optionalSources ${optionalSources} |
| 103 |
imageconverter.cpp |
| 104 |
dbus.cpp) |
| 105 |
find_file(KWALLET_XML org.kde.KWallet.xml ${KDE4_DBUS_INTERFACES_DIR} ${DBUS_INTERFACES_INSTALL_DIR}) |
| 106 |
if(KWALLET_XML) |
| 107 |
message(STATUS "KWallet found, enable KWallet support") |
| 108 |
add_definitions(-DKWALLET_ENABLED) |
| 109 |
qt4_add_dbus_interface(optionalSources ${KWALLET_XML} kwallet_interface ) |
| 110 |
set(optionalSources ${optionalSources} wallet.cpp) |
| 111 |
endif(KWALLET_XML) |
| 112 |
endif(QT_QTDBUS_FOUND) |
| 113 |
endif(QTERM_ENABLE_DBUS) |
| 114 |
|
| 115 |
if(QTERM_ENABLE_SCRIPT) |
| 116 |
if(Qt5Script_FOUND) |
| 117 |
message(STATUS "QtScript module found, enable Script support") |
| 118 |
add_definitions(-DSCRIPT_ENABLED) |
| 119 |
include_directories(${Qt5Script_INCLUDE_DIRS}) |
| 120 |
set(optionalLibs ${optionalLibs} ${Qt5Script_LIBRARIES}) |
| 121 |
set(optionalSources ${optionalSources} scripthelper.cpp) |
| 122 |
if(QTERM_ENABLE_SCRIPT_DEBUGGER) |
| 123 |
if(Qt5ScriptTools_FOUND) |
| 124 |
message(STATUS "QtScriptTools module found, enable Debugger support") |
| 125 |
add_definitions(-DSCRIPTTOOLS_ENABLED) |
| 126 |
include_directories(${Qt5ScriptTools_INCLUDE_DIRS}) |
| 127 |
set(optionalLibs ${optionalLibs} ${Qt5ScriptTools_LIBRARIES}) |
| 128 |
else(Qt5ScriptTools_FOUND) |
| 129 |
message(STATUS "QtScriptTools module not found") |
| 130 |
endif(Qt5ScriptTools_FOUND) |
| 131 |
endif(QTERM_ENABLE_SCRIPT_DEBUGGER) |
| 132 |
endif(Qt5Script_FOUND) |
| 133 |
endif(QTERM_ENABLE_SCRIPT) |
| 134 |
|
| 135 |
if(QTERM_ENABLE_QMEDIAPLAYER) |
| 136 |
if(Qt5Multimedia_FOUND) |
| 137 |
message(STATUS "Qt Multimedia module found, enable QMediaPlayer support") |
| 138 |
add_definitions(-DQMEDIAPLAYER_ENABLED) |
| 139 |
include_directories(${Qt5Multimedia_INCLUDE_DIRS}) |
| 140 |
set(optionalLibs ${optionalLibs} ${Qt5Multimedia_LIBRARIES}) |
| 141 |
endif(Qt5Multimedia_FOUND) |
| 142 |
endif(QTERM_ENABLE_QMEDIAPLAYER) |
| 143 |
|
| 144 |
if(QTERM_ENABLE_PHONON) |
| 145 |
if(QT_PHONON_FOUND) |
| 146 |
message(STATUS "Qt Phonon module found, enable Phonon support") |
| 147 |
add_definitions(-DPHONON_ENABLED) |
| 148 |
include_directories(${QT_PHONON_INCLUDE_DIR}) |
| 149 |
set(optionalLibs ${optionalLibs} ${QT_PHONON_LIBRARY}) |
| 150 |
if(QTERM_OLD_PHONON OR QT_VERSION_MINOR LESS 5) |
| 151 |
add_definitions(-DOLD_PHONON) |
| 152 |
endif(QTERM_OLD_PHONON OR QT_VERSION_MINOR LESS 5) |
| 153 |
else(QT_PHONON_FOUND) |
| 154 |
# Looking for KDE4, it is quite impossible that some system can have |
| 155 |
# Phonon without KDE4 |
| 156 |
if(PHONON_FOUND) |
| 157 |
message(STATUS "KDE Phonon module found, enable Phonon support") |
| 158 |
add_definitions(-DPHONON_ENABLED) |
| 159 |
include_directories(${KDE4_INCLUDES}) |
| 160 |
set(optionalLibs ${optionalLibs} ${KDE4_PHONON_LIBRARY}) |
| 161 |
endif(PHONON_FOUND) |
| 162 |
endif(QT_PHONON_FOUND) |
| 163 |
endif(QTERM_ENABLE_PHONON) |
| 164 |
|
| 165 |
set(qterm_SRCS |
| 166 |
aboutdialog.cpp |
| 167 |
addrdialog.cpp |
| 168 |
articledialog.cpp |
| 169 |
assistantclient.cpp |
| 170 |
imageviewer.cpp |
| 171 |
imagelistviewer.cpp |
| 172 |
keydialog.cpp |
| 173 |
main.cpp |
| 174 |
msgdialog.cpp |
| 175 |
osdmessage.cpp |
| 176 |
overlayWidget.cpp |
| 177 |
popupMessage.cpp |
| 178 |
popwidget.cpp |
| 179 |
prefdialog.cpp |
| 180 |
progressBar.cpp |
| 181 |
qtermbbs.cpp |
| 182 |
qtermbuffer.cpp |
| 183 |
qtermcanvas.cpp |
| 184 |
qtermconfig.cpp |
| 185 |
qtermconvert.cpp |
| 186 |
qtermdecode.cpp |
| 187 |
qtermframe.cpp |
| 188 |
qtermhttp.cpp |
| 189 |
qtermiplocation.cpp |
| 190 |
qtermparam.cpp |
| 191 |
qtermscreen.cpp |
| 192 |
qtermsocket.cpp |
| 193 |
qtermsound.cpp |
| 194 |
qtermtelnet.cpp |
| 195 |
qtermtextline.cpp |
| 196 |
qtermtoolbutton.cpp |
| 197 |
qtermwindow.cpp |
| 198 |
qtermwindowbase.cpp |
| 199 |
qtermzmodem.cpp |
| 200 |
qtermglobal.cpp |
| 201 |
quickdialog.cpp |
| 202 |
schemedialog.cpp |
| 203 |
shortcutsdialog.cpp |
| 204 |
statusBar.cpp |
| 205 |
toolbardialog.cpp |
| 206 |
zmodemdialog.cpp |
| 207 |
hostinfo.cpp |
| 208 |
termstring.cpp |
| 209 |
keyboardtranslator.cpp |
| 210 |
closedialog.cpp |
| 211 |
uaocodec.cpp |
| 212 |
dommodel.cpp |
| 213 |
pallete.cpp |
| 214 |
chartable.cpp |
| 215 |
charpane.cpp |
| 216 |
blur.cpp |
| 217 |
${optionalSources}) |
| 218 |
set(qterm_UIS |
| 219 |
ui/aboutdialog.ui |
| 220 |
ui/addrdialog.ui |
| 221 |
ui/articledialog.ui |
| 222 |
ui/closedialog.ui |
| 223 |
ui/imageviewer.ui |
| 224 |
ui/keydialog.ui |
| 225 |
ui/mainframe.ui |
| 226 |
ui/msgdialog.ui |
| 227 |
ui/prefdialog.ui |
| 228 |
ui/quickdialog.ui |
| 229 |
ui/schemedialog.ui |
| 230 |
ui/shortcutsdialog.ui |
| 231 |
ui/soundconf.ui |
| 232 |
ui/sshlogin.ui |
| 233 |
ui/toolbardialog.ui |
| 234 |
ui/zmodemdialog.ui |
| 235 |
ui/pallete.ui) |
| 236 |
set(qterm_UIS_H |
| 237 |
ui_aboutdialog.h |
| 238 |
ui_addrdialog.h |
| 239 |
ui_articledialog.h |
| 240 |
ui_imageviewer.h |
| 241 |
ui_keydialog.h |
| 242 |
ui_mainframe.h |
| 243 |
ui_msgdialog.h |
| 244 |
ui_prefdialog.h |
| 245 |
ui_quickdialog.h |
| 246 |
ui_schemedialog.h |
| 247 |
ui_soundconf.h |
| 248 |
ui_sshlogin.h |
| 249 |
ui_shortcutsdialog.h |
| 250 |
ui_toolbardialog.h |
| 251 |
ui_zmodemdialog.h |
| 252 |
ui_closedialog.h |
| 253 |
ui_pallete.h) |
| 254 |
set(qterm_MISC |
| 255 |
address.xml |
| 256 |
credits |
| 257 |
qterm.cfg) |
| 258 |
set(qterm_RCCS |
| 259 |
qterm.qrc) |
| 260 |
|
| 261 |
file(COPY ${qterm_MISC} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) |
| 262 |
|
| 263 |
find_program(XDGOPEN NAME xdg-open DOC "Looking for xdg-open") |
| 264 |
if (XDGOPEN_FOUND) |
| 265 |
set (HTTP xdg-open) |
| 266 |
else (XDGOPEN_FOUND) |
| 267 |
set (HTTP) |
| 268 |
endif (XDGOPEN_FOUND) |
| 269 |
|
| 270 |
configure_file(${CMAKE_CURRENT_BINARY_DIR}/qterm.cfg ${CMAKE_CURRENT_BINARY_DIR}/qterm.cfg) |
| 271 |
|
| 272 |
if(WIN32) |
| 273 |
if(MINGW) |
| 274 |
# resource compilation for mingw |
| 275 |
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/qterm_rc.o |
| 276 |
COMMAND windres.exe -I${CMAKE_CURRENT_SOURCE_DIR} |
| 277 |
-i${CMAKE_CURRENT_SOURCE_DIR}/qterm.rc |
| 278 |
-o ${CMAKE_CURRENT_BINARY_DIR}/qterm_rc.o) |
| 279 |
SET(qterm_SRCS ${qterm_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/qterm_rc.o) |
| 280 |
else(MINGW) |
| 281 |
SET(qterm_SRCS ${qterm_SRCS} qterm.rc) |
| 282 |
endif(MINGW) |
| 283 |
set(optionalLibs ${optionalLibs} ws2_32) |
| 284 |
cmake_policy(SET CMP0020 NEW) # automatically link to qtmain.lib |
| 285 |
endif(WIN32) |
| 286 |
|
| 287 |
if (QT_VERSION_MAJOR EQUAL 5) |
| 288 |
qt5_add_resources(qterm_RCCS_SRCS ${qterm_RCCS}) |
| 289 |
qt5_wrap_ui(qterm_UIS_H ${qterm_UIS}) |
| 290 |
else () |
| 291 |
qt_add_resources(qterm_RCCS_SRCS ${qterm_RCCS}) |
| 292 |
# https://bugreports.qt.io/browse/QTBUG-93413 |
| 293 |
if (QT_VERSION VERSION_LESS 6.7.1) |
| 294 |
qt_wrap_ui(qterm_UIS_H ${qterm_UIS} OPTIONS -c string) |
| 295 |
else () |
| 296 |
qt_wrap_ui(qterm_UIS_H ${qterm_UIS}) |
| 297 |
endif () |
| 298 |
endif () |
| 299 |
|
| 300 |
set(qterm_SRCS ${qterm_SRCS} ${qterm_RCCS} ${qterm_UIS}) |
| 301 |
add_compile_definitions( -DHAVE_CONFIG_H ) |
| 302 |
include_directories( |
| 303 |
${Qt${QT_VERSION_MAJOR}Qt_INCLUDE_DIRS} |
| 304 |
${Qt${QT_VERSION_MAJOR}Widgets_INCLUDE_DIRS} |
| 305 |
${Qt${QT_VERSION_MAJOR}Core_INCLUDE_DIRS} |
| 306 |
${Qt${QT_VERSION_MAJOR}Network_INCLUDE_DIRS} |
| 307 |
) |
| 308 |
if(${QT_VERSION_MAJOR} VERSION_EQUAL 6) |
| 309 |
include_directories(${Qt${QT_VERSION_MAJOR}Core5Compat_INCLUDE_DIRS}) |
| 310 |
endif() |
| 311 |
if(UNIX AND NOT APPLE) |
| 312 |
find_package(X11) |
| 313 |
include_directories(${X11_INCLUDE_DIR}) |
| 314 |
set(optionalLibs ${optionalLibs} ${X11_X11_LIB}) |
| 315 |
endif(UNIX AND NOT APPLE) |
| 316 |
include_directories( |
| 317 |
${CMAKE_SOURCE_DIR} |
| 318 |
${CMAKE_BINARY_DIR} |
| 319 |
${CMAKE_CURRENT_BINARY_DIR} |
| 320 |
${CMAKE_CURRENT_SOURCE_DIR}) |
| 321 |
if(WIN32) |
| 322 |
add_executable(${PROGRAME} WIN32 ${qterm_SRCS} ${qterm_RCCS_SRCS}) |
| 323 |
elseif(APPLE) |
| 324 |
set(qterm_MISC ${qterm_MISC} ${CMAKE_CURRENT_SOURCE_DIR}/../icons/QTerm.icns) |
| 325 |
set_source_files_properties(${qterm_MISC} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) |
| 326 |
add_executable(${PROGRAME} MACOSX_BUNDLE ${qterm_SRCS} ${qterm_RCCS_SRCS} ${qterm_MISC} ) |
| 327 |
add_custom_command( TARGET ${PROGRAME} PRE_BUILD |
| 328 |
COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/MacOS |
| 329 |
COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources |
| 330 |
COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources/po |
| 331 |
COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources/doc |
| 332 |
COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources/keyboard_profiles |
| 333 |
) |
| 334 |
add_custom_command( TARGET ${PROGRAME} POST_BUILD |
| 335 |
COMMAND cp ARGS ${CMAKE_CURRENT_BINARY_DIR}/po/*.qm ${PROGRAME}.app/Contents/Resources/po |
| 336 |
# COMMAND cp ARGS ${CMAKE_CURRENT_BINARY_DIR}/doc/*.{qhc,qch} ${PROGRAME}.app/Contents/Resources/doc |
| 337 |
COMMAND cp ARGS ${CMAKE_CURRENT_BINARY_DIR}/keyboard_profiles/*.keytab ${PROGRAME}.app/Contents/Resources/keyboard_profiles |
| 338 |
) |
| 339 |
else() |
| 340 |
add_executable(${PROGRAME} ${qterm_SRCS} ${qterm_RCCS_SRCS}) |
| 341 |
endif() |
| 342 |
target_link_libraries(${PROGRAME} |
| 343 |
${Qt${QT_VERSION_MAJOR}Core_LIBRARIES} |
| 344 |
${Qt${QT_VERSION_MAJOR}Gui_LIBRARIES} |
| 345 |
${Qt${QT_VERSION_MAJOR}Widgets_LIBRARIES} |
| 346 |
${Qt${QT_VERSION_MAJOR}Xml_LIBRARIES} |
| 347 |
${Qt${QT_VERSION_MAJOR}PrintSupport_LIBRARIES} |
| 348 |
${Qt${QT_VERSION_MAJOR}Network_LIBRARIES} |
| 349 |
${optionalLibs}) |
| 350 |
if (${QT_VERSION_MAJOR} VERSION_EQUAL 6) |
| 351 |
target_link_libraries(${PROGRAME} |
| 352 |
${Qt6Core5Compat_LIBRARIES}) |
| 353 |
ENDIF() |
| 354 |
|
| 355 |
if(WIN32 AND MINGW) |
| 356 |
target_link_libraries(${PROGRAME} ${win32Libs}) |
| 357 |
endif(WIN32 AND MINGW) |
| 358 |
if (APPLE) |
| 359 |
install(TARGETS ${PROGRAME} DESTINATION .) |
| 360 |
_install_plugins( |
| 361 |
MODULES Gui Widgets Network |
| 362 |
DIRECTORY ${PROGRAME}.app/Contents/PlugIns |
| 363 |
) |
| 364 |
install(CODE " |
| 365 |
file(WRITE \"\${CMAKE_INSTALL_PREFIX}/${PROGRAME}.app/Contents/Resources/qt.conf\" \"[Paths]\nPlugIns=PlugIns\") |
| 366 |
" COMPONENT Runtime) |
| 367 |
install(CODE " |
| 368 |
file(GLOB_RECURSE PLUGINS \${CMAKE_INSTALL_PREFIX}/${PROGRAME}.app/Contents/PlugIns/*${CMAKE_SHARED_LIBRARY_SUFFIX}) |
| 369 |
set(BU_CHMOD_BUNDLE_ITEMS ON) |
| 370 |
include(BundleUtilities) |
| 371 |
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/${PROGRAME}.app/Contents/MacOS/QTerm\" |
| 372 |
\"\${PLUGINS}\" |
| 373 |
\"${QT_LIBRARY_DIR}\") |
| 374 |
" COMPONENT Runtime) |
| 375 |
else (APPLE) |
| 376 |
install(TARGETS ${PROGRAME} DESTINATION bin) |
| 377 |
install(FILES ${qterm_MISC} DESTINATION share/qterm) |
| 378 |
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/qterm.desktop DESTINATION share/applications) |
| 379 |
if(WIN32) |
| 380 |
_install_plugins ( |
| 381 |
MODULES Gui Widgets Network |
| 382 |
DIRECTORY plugins |
| 383 |
) |
| 384 |
install(CODE " |
| 385 |
file(WRITE \"\${CMAKE_INSTALL_PREFIX}/bin/qt.conf\" \"[Paths]\nPlugIns=../plugins\") |
| 386 |
" COMPONENT Runtime) |
| 387 |
install(CODE " |
| 388 |
file(GLOB_RECURSE PLUGINS \${CMAKE_INSTALL_PREFIX}/bin/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}) |
| 389 |
include(BundleUtilities) |
| 390 |
set(DIRS \"${QT_BINARY_DIR}\" \"${QT_LIBRARY_DIR}\" \"${OPENSSLCRYPTO_ROOT_DIR}\") |
| 391 |
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.exe\" |
| 392 |
\"\${PLUGINS}\" |
| 393 |
\"\${DIRS}\") |
| 394 |
") |
| 395 |
endif(WIN32) |
| 396 |
endif(APPLE) |
| 397 |
add_subdirectory(scheme) |
| 398 |
add_subdirectory(scripts) |
| 399 |
add_subdirectory(po) |
| 400 |
add_subdirectory(keyboard_profiles) |
| 401 |
add_subdirectory(doc) |
| 402 |
add_dependencies(${PROGRAME} translations_target help_target) |
| 403 |
if(QTERM_ENABLE_TEST) |
| 404 |
add_subdirectory(test) |
| 405 |
endif(QTERM_ENABLE_TEST) |