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/
[EMAIL PROTECTED]
[EMAIL PROTECTED]
______________________________________________________________________
--
Mike Jackson
imikejackson _at_ gee-mail dot com
add_library(model
model.h
atom.cpp
bond.cpp
build.cpp
cell.cpp
energy.cpp
expression.cpp
glyph.cpp
measure.cpp
model.cpp
molecule.cpp
pattern.cpp
select.cpp
selection.cpp
site.cpp
trajectory.cpp
transform.cpp
typing.cpp
undo.cpp
view.cpp
)
include_directories(
../
${QT_INCLUDE_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
)
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake