1# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2# file Copyright.txt or https://cmake.org/licensing for details.
3
4
5# used internally by KDE3Macros.cmake
6# [email protected]
7
8
9execute_process(COMMAND ${KDE_UIC_EXECUTABLE}
10   -L ${KDE_UIC_PLUGIN_DIR} -nounload -tr tr2i18n
11   -impl ${KDE_UIC_H_FILE}
12   ${KDE_UIC_FILE}
13   OUTPUT_VARIABLE _uic_CONTENTS
14   ERROR_QUIET
15  )
16
17string(REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )
18string(REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )
19
20file(WRITE ${KDE_UIC_CPP_FILE} "#include <kdialog.h>\n#include <klocale.h>\n\n")
21file(APPEND ${KDE_UIC_CPP_FILE} "${_uic_CONTENTS}")
22
23