PDA

View Full Version : Cmake & QT



Vadi
November 21st, 2007, 03:06 PM
For the life of me, I cannot get cmake to compile my simple "Hello World!" program. I already got it working with qmake, so it's not that of a vital issue, but still, can anyone help me out?

After I do cmake . and make, it cannot do the #includes properly for whatever reason. I attached my two files, any help/explanations would be appreciated :)

(main.cpp was suffixed with .txt to comply with the uploads policy)

Roptaty
November 21st, 2007, 07:14 PM
Hi!
The KDE4* QT* are undefined. You need to include the modules which sets them in your CMakeLists.txt file.
Search for FindQt4 here if you are using qt4: http://www.cmake.org/HTML/Documentation.html