> One thing of note: In order for QT4_AUTOMOC to work, I had to move the
> definition of the Pixmap class into a new header file named main.h. It seems
> in general putting your Q_OBJECT class defs in a header is required when
> building Qt projects under CMake... but there's probably some way arou
Posting a solution to my previous problem
I wasn't linking in the generated resource file.
Here's a working very short CMake file for building the "states" Qt4.6
example:
---
#basic stuff
PROJECT(states) # the name of your project
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
#find qt, and include qt ma
Hello all, I'm just getting going with CMake and qt, and I'm having a bit of
a problem.
I've assembled pretty much the simplest CMakeLists.txt file I can imagine
for a very simple example qt project. (I'm trying to build the qt 4.6
"states" example using CMake.)
When I build, I get the following l