PDA

View Full Version : QT use cmake dose not work successfully.



wter27
6th February 2011, 06:58
When I use the qt to cmake the project.But there is the error when compile the project.So anyone can tell me about the error?Sometimes I think the cmake versions.

CMake Error at src/CMakeLists.txt:30 (qt4_automoc):
Unknown CMake command "qt4_automoc".


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

mcosta
7th February 2011, 10:26
Hi,
can you post your CMakeLists.txt?