[CMake] cmake strange errors when porting VS2005

Alin M Elena alin.elena at qub.ac.uk
Fri Apr 4 16:44:45 EDT 2008


Thank you all for the answers,

Mike Jackson wrote:
>Looks like either all the source files are NOT listed in your
>CMakeLists.txt file OR you need another library to link against.
>Do you have a file called "Model.h" that declares the "Model" class or
>is "Model" declared in an external library?

There is a model.h that declares a class Model and model.cpp that implements
it.
Together with other things go in a library model.lib. I added the
CMakeLists.txt for that.
The source can be browsed here
http://code.google.com/p/aten/

I suspect that there is a library missing or not build correctly. The model
class has some forward declarations
Bill Hoffman wrote
>It looks like moc stuff to me.  The Model constructor destructor are not
missing, just a bunch of slots and >signals like methods...
Model.h does not get moc'ed and does not need to.

Yumin Yuan wrote
>I think Bill is right. I did not see any "QT4_WRAP_*" in the CMakeLists.txt
file.
>If you use Q_OBJECT and signal/slot stuff in your class, you have to do
some Qt wrapping...

The qt stuff is all included in another library gui it has all the QT4 stuff
in it(src/gui/). I have compiled the project successfully with cmake on
linux.


Alin

____________________________________________________________________
"...if the universities will not study useless subjects, who will?"
                           G. F. Fitzgerald, Nature, 45/46, 392 (1892)
______________________________________________________________________
Mr. Alin M. ELENA
Atomistic Simulation Centre
School of Mathematics and Physics
Queen's University Belfast
Office: +44 (0)28 9097 1428
Fax: +44 (0)28 9097 5359
http://titus.phy.qub.ac.uk/group/Alin/
alin.elena at yahoo.co.uk
alin.elena at qub.ac.uk
______________________________________________________________________


-- 
Mike Jackson
imikejackson _at_ gee-mail dot com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080404/2df5833e/attachment.txt>


More information about the CMake mailing list