aboutsummaryrefslogtreecommitdiff
path: root/kde3/kde3uic.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-01-06 19:44:09 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-01-06 19:44:09 +0000
commitbc04413334c6bb810f4989c455faf8945fce99f7 (patch)
tree01a9578122ec2aca9ce0efd49de734a9ace0f1ad /kde3/kde3uic.cmake
downloadextra-cmake-modules-bc04413334c6bb810f4989c455faf8945fce99f7.tar.gz
extra-cmake-modules-bc04413334c6bb810f4989c455faf8945fce99f7.tar.bz2
-support files for cmake for building KDE 3 applications, libraries, ioslaves, KParts, KLMs etc.
documentation will follow later on Alex svn path=/trunk/KDE/kdesdk/cmake/; revision=495009
Diffstat (limited to 'kde3/kde3uic.cmake')
-rw-r--r--kde3/kde3uic.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/kde3/kde3uic.cmake b/kde3/kde3uic.cmake
new file mode 100644
index 00000000..64751b2e
--- /dev/null
+++ b/kde3/kde3uic.cmake
@@ -0,0 +1,17 @@
+
+EXEC_PROGRAM(uic ARGS
+ -nounload -tr tr2i18n
+ -impl ${KDE_UIC_H_FILE}
+ ${KDE_UIC_FILE}
+ OUTPUT_VARIABLE _uic_CONTENTS
+)
+
+STRING(REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )
+STRING(REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )
+
+# $(PERL) -pe "s,image([0-9][0-9]*)_data,img\$$1_editbookmarkdlg,g" >> editbookmarkdlg.cpp ;\
+# rm -f editbookmarkdlg.cpp.temp ;\
+
+FILE(WRITE ${KDE_UIC_CPP_FILE} "#include <kdialog.h>\n#include <klocale.h>\n\n")
+FILE(APPEND ${KDE_UIC_CPP_FILE} "${_uic_CONTENTS}")
+