[CMake] qt .qrc file modifications require two builds
Glenn Hughes
ghughes02138 at gmail.com
Tue Dec 15 19:24:31 EST 2009
Really? How could it? Suppose I only have 1 qrc file, named foo.qrc:
wouldn't these two lines be equivalent?
FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "res/*.qrc" )
SET( my_RESOURCES "res/foo.qrc")
???
TIA
G
On Tue, Dec 15, 2009 at 7:15 PM, John Drescher <drescherjm at gmail.com> wrote:
>> The CMake script in question looks more or less like:
>>
>> FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "res/*.qrc" )
>> QT4_ADD_RESOURCES( my_RESOURCES_SOURCES ${my_RESOURCES} )
>>
>> ...
>
> It's always best to not do any file globbing and add each file by
> hand. I believe this is causing the problem.
>
> John
>
More information about the CMake
mailing list