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

John Drescher drescherjm at gmail.com
Mon Mar 30 12:17:32 EDT 2009


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


More information about the CMake mailing list