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})