mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-06 20:23:08 +00:00
feat(CMakeLists.txt): remove automatically *.qm files on clean
This commit is contained in:
parent
01dfa30703
commit
fd54a3c845
1 changed files with 5 additions and 2 deletions
|
|
@ -46,7 +46,10 @@ 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.
|
||||
# Remove `*.qm` when `clean` is called.
|
||||
set_directory_properties(ADDITIONAL_MAKE_CLEAN_FILES ${QM_FILES})
|
||||
|
||||
# Command to just remove `.qm` files.
|
||||
add_custom_target(remove_qm_files
|
||||
COMMAND ${CMAKE_COMMAND} -E remove "${CMAKE_BINARY_DIR}/${LANGUAGES_DIRECTORY}/*.qm"
|
||||
COMMAND ${CMAKE_COMMAND} -E remove ${QM_FILES}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue