[CMake] QT3 and embedding images

Tim Schooley tim at sbdev.net
Fri Aug 24 07:41:06 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

I've recently ported my project to CMake from standard Makefiles, but
missed a vital point (only just noticed by running the damn thing!).

I've looked around, but can't find the answer: How to I embed images
into QT3 apps with CMake ? The Makefile generated from qmake was
something like:

- ----

.obj/qmake_image_collection.o: .ui/qmake_image_collection.cpp
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/qmake_image_collection.o
.ui/qmake_image_collection.cpp

.ui/qmake_image_collection.cpp: images/gtk-about.png
	$(UIC)  -embed program images/gtk-about.png ... -o
.ui/qmake_image_collection.cpp

- ----

Should I make custom targets for all this, or is there something simpler?

Thanks for any help!

/Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzsPSChPkLPgrpHQRAl6IAKClGIq5qR0GyAz+5+vcNZzPtsA4igCbBwm7
kpI4Tb7gOqNoGJ7Fg7QUmq0=
=swne
-----END PGP SIGNATURE-----



More information about the CMake mailing list