From d1ac0a7a6915d1adb1e69a1ccfc90775d2216022 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 20 Sep 2012 14:55:47 +0000 Subject: [PATCH] Extend macro for qm generation. --- adm_local/cmake_files/UseQT4EXT.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}) -- 2.39.2