[CMake] How can I manage the Qt4's .rc file with CMake?

Kermit Mei kermit.mei at gmail.com
Mon Mar 30 14:02:01 EDT 2009


On Mon, 2009-03-30 at 12:17 -0400, John Drescher wrote:
> On Mon, Mar 30, 2009 at 12:04 PM, Kermit Mei <kermit.mei at gmail.com> wrote:
> > Hello community! I want to change my program's icon on windows, and it
> > wrote with Qt4. I looked up the assistant, it told me the following.
> >
> > But I don't know how to use it in cmake?
> > And, another question: If I use MinGW+Qt, but not M$ VC++, can I use it?
> >
> >
> Shouldn't that be qrc for Qt4? And then you use something like this in
> your CMakeLists.txt
> 
> # and finally an resource file
> SET( UPMC_LA_RCS
> 	./rc/LungAnalysis.qrc
> )
> 
> # this command will generate rules that will run rcc on all files from
> UPMC_LA_RCS
> # in result UPMC_LA_RC_SRCS variable will contain paths to files produced by rcc
> QT4_ADD_RESOURCES( UPMC_LA_RC_SRCS ${UPMC_LA_RCS} )
> 
> 
> John
No, John,it's not qrc, and what you said I had used before. What I want
is to change the icon of myapp.exe. 

Thank you,all the same;p




More information about the CMake mailing list