[CMake] QT4_ADD_RESOURCES fails to find dependencies in
resource-files with aliases
Michael G. Hansen
mikeml2 at pfna.de
Wed Feb 7 17:50:37 EST 2007
Hi,
I am using aliases in my Qt-resource-files like this:
<file alias="somefile.ext">filename/on/disk.ext</file>
This prevents QT4_ADD_RESOURCES from finding the dependency on
"filename/on/disk.ext" because the regular expression used for this does
not expect the alias-parameter. I tried to create a new regular
expression which works with the alias-parameter:
FindQt4.cmake from CMake 2.4-patch 5, line 783:
STRING(REGEX MATCHALL "<file( alias=\"[^\"]*\")?>[^<]*" _RC_FILES
"${_RC_FILE_CONTENTS}")
and line 786:
STRING(REGEX REPLACE "^<file( alias=\"[^\"]*\")?>" "" _RC_FILE
"${_RC_FILE}")
I am not that experienced with regular expressions, so maybe somebody
could check them first (they do work for my test-cases, though).
Greetings,
Mike
--
Michael Hansen - http://www.pfna.de/
Monheim / Germany
More information about the CMake
mailing list