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
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to