Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Qt 5.0.2 + CMake 2.8.11.1 + QT5_CREATE_TRANSLATION: how to prevent delete existing ts file during clean

$
0
0
I use QT5_CREATE_TRANSLATION inside my CMakelists.txt to keep my ts files in actual state. It is very useful. But when I call make clean my ts files are cleaned also. If I understand right it is because of add_custom_command(OUTPUT ${_ts_file} COMMAND ${Qt5_LUPDATE_EXECUTABLE} ARGS ${_lupdate_options} “@${_ts_lst_file}” -ts ${_ts_file} DEPENDS ${_my_sources} ${_ts_lst_file} VERBATIM) inside the QT5_CREATE_TRANSLATION function. Is there way to prevent ts file deletion during the clean operation? Thanks in advance.

Viewing all articles
Browse latest Browse all 13965

Latest Images

Trending Articles



Latest Images