aboutsummaryrefslogtreecommitdiff
path: root/kde4/kde4uic.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-01-13 22:40:08 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-01-13 22:40:08 +0000
commit250436011321451373b720ca820b58cbfa245c3b (patch)
treebc4df9d9fdd2342658e76fe5c41470dff7936664 /kde4/kde4uic.cmake
parent491a595f8f2f99c2629e5594f3bcffc20d361d00 (diff)
downloadextra-cmake-modules-250436011321451373b720ca820b58cbfa245c3b.tar.gz
extra-cmake-modules-250436011321451373b720ca820b58cbfa245c3b.tar.bz2
initial KDE4 files for cmake, improved am2cmake
Alex svn path=/trunk/KDE/kdesdk/cmake/; revision=497823
Diffstat (limited to 'kde4/kde4uic.cmake')
-rw-r--r--kde4/kde4uic.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/kde4/kde4uic.cmake b/kde4/kde4uic.cmake
new file mode 100644
index 00000000..64751b2e
--- /dev/null
+++ b/kde4/kde4uic.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}")
+