It is the moc stuff that's causing the problem. After used qmake to generate
moc_*.cpp files, I was able to use cmake to compile the code. But I still
have no idea on how to use cmake to compile the code without using qmake to
generate the moc files first.
The change to my CMakeLists.txt file I
Linge Bai wrote:
It is the moc stuff that's causing the problem. After used qmake to
generate moc_*.cpp files, I was able to use cmake to compile the code.
But I still have no idea on how to use cmake to compile the code without
using qmake to generate the moc files first.
The change to my
Thank you all very much for your help. The problem is solved. I'd like to
post my CMakeLists.txt file here for other people with similar problems:
PROJECT ( COMBINED )
FIND_PACKAGE (Qt4 REQUIRED)
SET(QT_USE_QTOPENGL TRUE)
SET(QT_WRAP_CPP TRUE)
INCLUDE( ${QT_USE_FILE} )
SET(MOCHEADER glwidget.h
Am Thursday 25 September 2008 19:42:34 schrieb Hendrik Sattler:
Am Thursday 25 September 2008 17:45:54 schrieb Stefan Weber:
I am working on a C++ project which is using a single assembler file
(among all the C++ files). In the mailinglist archives I found some hints
on how to use the