cmake EXEC_PROGRAM merges stdout and stderr?
David Faure
faure at kde.org
Fri Feb 3 16:17:35 CET 2006
On Friday 03 February 2006 16:04, Brad King wrote:
> In fact there is a shell involved and that is why updating it to a newer
> process execution implementation is hard. That syntax will work fine
> and the output will go to foo.h. What are you trying to do with this?
> There may be another way.
Trying to run uic3 and get its output into a .h file :)
The current kde module for that does:
IF(KDE3_IMPL)
EXEC_PROGRAM(${KDE_UIC_EXECUTABLE} ARGS
-nounload -tr tr2i18n
-impl ${KDE_UIC_H_FILE}
${KDE_UIC_FILE}
OUTPUT_VARIABLE _uic_CONTENTS
)
ENDIF(KDE3_IMPL)
[...some regexp replacements on _uic_CONTENTS, and then...]
FILE(WRITE ${KDE_UIC_CPP_FILE} "#include <kdialog.h>\n#include <klocale.h>\n\n${_uic_CONTENTS}\n")
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list