ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git] / Modules / kde3uic.cmake
blob0dbbbcf1db5959006d4af416d434d99d86982f30
3 # used internally by KDE3Macros.cmake
4 # neundorf@kde.org
7 EXECUTE_PROCESS(COMMAND ${KDE_UIC_EXECUTABLE}
8    -L ${KDE_UIC_PLUGIN_DIR} -nounload -tr tr2i18n
9    -impl ${KDE_UIC_H_FILE}
10    ${KDE_UIC_FILE}
11    OUTPUT_VARIABLE _uic_CONTENTS
12    ERROR_QUIET
13   )
15 STRING(REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )
16 STRING(REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _uic_CONTENTS "${_uic_CONTENTS}" )
18 FILE(WRITE ${KDE_UIC_CPP_FILE} "#include <kdialog.h>\n#include <klocale.h>\n\n")
19 FILE(APPEND ${KDE_UIC_CPP_FILE} "${_uic_CONTENTS}")