From: ageay Date: Thu, 20 Sep 2012 14:55:47 +0000 (+0000) Subject: Extend macro for qm generation. X-Git-Tag: V6_6_0a1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d1ac0a7a6915d1adb1e69a1ccfc90775d2216022;p=modules%2Fgui.git Extend macro for qm generation. --- diff --git a/adm_local/cmake_files/UseQT4EXT.cmake b/adm_local/cmake_files/UseQT4EXT.cmake index e3a8605c4..0a0949ce2 100644 --- a/adm_local/cmake_files/UseQT4EXT.cmake +++ b/adm_local/cmake_files/UseQT4EXT.cmake @@ -32,7 +32,8 @@ MACRO(QT4_INSTALL_TS_RESOURCES MYTSFILES WHERETOINSTALL) INSTALL(CODE "SET(INSTALL_TS_DIR ${WHERETOINSTALL})") SET(MYSOURCES) FOREACH(input ${MYTSFILES}) - STRING(REGEX REPLACE ".ts" "" base ${input}) + GET_FILENAME_COMPONENT(input2 ${input} NAME) + STRING(REGEX REPLACE ".ts" "" base ${input2}) SET(output "${base}.qm") INSTALL(CODE "QT4_COMPILE_TS_ON_INSTALL( \"${QT_LRELEASE_EXECUTABLE}\" \"${CMAKE_CURRENT_SOURCE_DIR}/${input}\" \"${CMAKE_INSTALL_PREFIX}/\${INSTALL_TS_DIR}\" ${output})") ENDFOREACH(input ${MYIDLFILES})