[Development] cmake mingw qt
pengliang(彭亮)
pengliang at founder.com
Fri Mar 8 07:10:52 CET 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130308/539b6402/attachment.html>
More information about the Development
mailing list