]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Extend macro for qm generation.
authorageay <ageay>
Thu, 20 Sep 2012 14:55:47 +0000 (14:55 +0000)
committerageay <ageay>
Thu, 20 Sep 2012 14:55:47 +0000 (14:55 +0000)
adm_local/cmake_files/UseQT4EXT.cmake

index e3a8605c48470f49754cc38336981d85ddeb068d..0a0949ce2b4c1e1465afb69d1fb72239e21ed4f4 100644 (file)
@@ -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})