Commit 1047361f authored by Julien Malik's avatar Julien Malik

ENH: export qt.conf with translations path into build dir

parent c146dfd4
......@@ -61,6 +61,19 @@ target_link_libraries(monteverdi2
${QT_LIBRARIES}
)
# deploy a qt.conf file in the monteverdi2 target build dir
# to avoid warning on translation discovery
add_custom_command(
TARGET monteverdi2
PRE_BUILD
COMMAND ${CMAKE_COMMAND}
ARGS -D QT_TRANSLATIONS_DIR:PATH=${QT_TRANSLATIONS_DIR}
-D SOURCE_DIR:PATH=${CMAKE_CURRENT_SOURCE_DIR}
-D TARGET_DIR:PATH=$<TARGET_FILE_DIR:monteverdi2>
-P ${CMAKE_CURRENT_SOURCE_DIR}/DeployQtConf.cmake
COMMENT "Deploying qt.conf in build dir"
VERBATIM
)
#############################################################################
install(
......
configure_file(${SOURCE_DIR}/qt.conf.in
${TARGET_DIR}/qt.conf)
\ No newline at end of file
[Paths]
Translations=@QT_TRANSLATIONS_DIR@
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment