Commit fd54a3c8 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(CMakeLists.txt): remove automatically `*.qm` files on `clean`

parent 01dfa307
......@@ -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}
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment