sorry,
i figure out, i made some mistakes.
thanks


-----Original Message-----
From: development-bounces+pengliang=founder....@qt-project.org 代表 pengliang(彭亮)
Sent: 2013-3-8 (星期五) 14:10
To: development@qt-project.org
Subject: [Development]  cmake mingw qt
 
hello,

my qt built by mingw, 
and now, i want to create makefile use cmake.
so, i run : cmake -G"MinGW Makefiles",

and i get some error messages:
CMake Error: Error: generator : MinGW Makefiles
Does not match the generator used previously: Visual Studio 10
Either remove the CMakeCache.txt file or choose a different binary directory.

anybody could tell me why?


[CMakeLists.txt]
PROJECT(test)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
SET(CMAKE_BUILD_TYPE RELEASE)
ADD_DEFINITIONS(${QT_DEFINITIONS})
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
INCLUDE(${QT_USE_FILE})
SET(SOURCES main.cpp widget.cpp)
SET(HEADERS widget.h)
QT4_WRAP_CPP(HEADERS_MOC ${HEADERS})
ADD_EXECUTABLE(test ${SOURCES} ${HEADERS_MOC})
TARGET_LINK_LIBRARIES(test ${QT_LIBRARIES})



thanks

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to