diff --git a/CMLibQtTranslation.cmake b/CMLibQtTranslation.cmake index 877b9be..1cfd9f3 100644 --- a/CMLibQtTranslation.cmake +++ b/CMLibQtTranslation.cmake @@ -1,4 +1,4 @@ -function(qt_translation) +function(qt5_translation) find_package( Qt5 COMPONENTS LinguistTools @@ -6,13 +6,13 @@ function(qt_translation) set(options) set(oneValueArgs TARGET TS_DIR) - set(multiValueArgs LANGUAGES) + set(multiValueArgs SOURCES LANGUAGES) cmake_parse_arguments(_QTTR "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) set(_target ${_QTTR_TARGET}) + set(_sources ${_QTTR_SOURCES}) set(_ts_dir ${_QTTR_TS_DIR}) set(_languages ${_QTTR_LANGUAGES}) - get_target_property(_sources ${_target} SOURCES) set(L10N_QRC_BODY "") make_directory(${_ts_dir})