@@ -181,12 +181,14 @@ endfunction()
181
181
# this function attach install() entries that deploy Qt for the given binaries
182
182
#
183
183
# \param:NOPLUGINS do not deploy Qt plugins
184
+ # \param:DIRECTORY directory, relative to CMAKE_INSTALL_PREFIX, to deploy to, default
185
+ # to ${MO2_INSTALL_BIN}
184
186
# \param:BINARIES names of the binaries (in the install path) to deploy from
185
187
#
186
188
function (mo2_deploy_qt)
187
189
cmake_parse_arguments (DEPLOY "NOPLUGINS" "DIRECTORY" "BINARIES" ${ARGN} )
188
190
189
- mo2_set_if_not_defined(DEPLOY_DIRECTORY "bin " )
191
+ mo2_set_if_not_defined(DEPLOY_DIRECTORY "${MO2_INSTALL_BIN} " )
190
192
191
193
mo2_find_qt_executable(windeployqt windeployqt)
192
194
@@ -353,14 +355,14 @@ endfunction()
353
355
# \param:TARGET target to generate releases for
354
356
# \param:INSTALL if set, QM files will be installed
355
357
# \param:DIRECTORY if INSTALL is set, path where translations should be installed,
356
- # default to bin /translations
358
+ # default to ${MO2_INSTALL_BIN} /translations
357
359
# \param:QM_FILE .qm file to generate
358
360
# \param:TS_FILES source ts
359
361
#
360
362
function (mo2_add_lrelease TARGET )
361
363
cmake_parse_arguments (MO2 "INSTALL" "DIRECTORY;QM_FILE" "TS_FILES" ${ARGN} )
362
364
363
- mo2_set_if_not_defined(MO2_DIRECTORY "bin /translations" )
365
+ mo2_set_if_not_defined(MO2_DIRECTORY "${MO2_INSTALL_BIN} /translations" )
364
366
365
367
mo2_find_qt_executable(lrelease_command lrelease)
366
368
@@ -395,7 +397,7 @@ endfunction()
395
397
# \param:TARGET target to generate translations for
396
398
# \param:RELEASE if set, will use mo2_add_lrelease to generate .qm files
397
399
# \param:INSTALL_RELEASE if true, will install generated .qm files (force RELEASE)
398
- # \param:INSTALL_DIRECTORY installation directory for .qm files, default to bin /translations
400
+ # \param:INSTALL_DIRECTORY installation directory for .qm files, default to ${MO2_INSTALL_BIN} /translations
399
401
# \param:TS_FILE intermediate .ts file to generate
400
402
# \param:QM_FILE file .qm file to generate if RELEASE or INSTALL_RELEASE is set
401
403
# \param:SOURCES source directories to look for translations, send to mo2_add_lupdate
@@ -405,7 +407,7 @@ function(mo2_add_translations TARGET)
405
407
406
408
mo2_set_if_not_defined(MO2_TS_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${TARGET} _en.ts)
407
409
mo2_set_if_not_defined(MO2_QM_FILE ${CMAKE_CURRENT_BINARY_DIR} /${TARGET} _en.qm)
408
- mo2_set_if_not_defined(MO2_INSTALL_DIRECTORY "bin /translations" )
410
+ mo2_set_if_not_defined(MO2_INSTALL_DIRECTORY "${MO2_INSTALL_BIN} /translations" )
409
411
410
412
# force release with install
411
413
if (${MO2_INSTALL_RELEASE} )
0 commit comments