Re: [CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-27 Thread Linge Bai
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

Re: [CMake] Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-27 Thread Bill Hoffman
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

[CMake] Fwd: Fwd: Fwd: cmake link against Qt4's OpenGL

2008-09-27 Thread Linge Bai
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

Re: [CMake] Assembler and C++ for the same target

2008-09-27 Thread Hendrik Sattler
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