mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-25 07:38:11 +00:00
feat(CMakeLists.txt): add remove_qm_files target
This commit is contained in:
parent
467c2102c5
commit
01dfa30703
1 changed files with 7 additions and 0 deletions
|
|
@ -42,4 +42,11 @@ endforeach ()
|
|||
|
||||
# Create `qm` files from `ts` files.
|
||||
qt5_create_translation(QM_FILES ${TS_FILES} ${SOURCES} ${HEADERS} ${QML_SOURCES})
|
||||
|
||||
# Translations target must be called by `make`|`make all`.
|
||||
add_custom_target(update_translations DEPENDS ${QM_FILES})
|
||||
|
||||
# Remove *.qm when `clean` is called.
|
||||
add_custom_target(remove_qm_files
|
||||
COMMAND ${CMAKE_COMMAND} -E remove "${CMAKE_BINARY_DIR}/${LANGUAGES_DIRECTORY}/*.qm"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue