aboutsummaryrefslogtreecommitdiff
path: root/modules/kde3uic.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-01-22 18:52:15 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-01-22 18:52:15 +0000
commitc6a5360e376a7d9b1750f5eccb46f85bfe5e041d (patch)
tree9d08e5f4508463916ec390359300b7a8a877d81d /modules/kde3uic.cmake
parent13644f36012bf967870a4f739a368c7c297d305d (diff)
downloadextra-cmake-modules-c6a5360e376a7d9b1750f5eccb46f85bfe5e041d.tar.gz
extra-cmake-modules-c6a5360e376a7d9b1750f5eccb46f85bfe5e041d.tar.bz2
moved kde3 stuff to modules/
Alex svn path=/trunk/KDE/kdesdk/cmake/; revision=501376
Diffstat (limited to 'modules/kde3uic.cmake')
-rw-r--r--modules/kde3uic.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/kde3uic.cmake b/modules/kde3uic.cmake
new file mode 100644
index 00000000..64751b2e
--- /dev/null
+++ b/modules/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}")
+