kde3uic.cmake 723 B

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