The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11791 ====================================================================== Reported By: Rolf Eike Beer Assigned To: ====================================================================== Project: CMake Issue ID: 11791 Category: Modules Reproducibility: always Severity: block Priority: normal Status: new ====================================================================== Date Submitted: 2011-02-03 05:04 EST Last Modified: 2011-02-03 05:04 EST ====================================================================== Summary: Regression in 2.8.4-rc: FIND_PACKAGE(Qt4 COMPONENTS QtMain) gives errors Description: The component QtMain is needed to get working Qt applications on Windows. In current snapshots this doesn't work anymore.
Steps to Reproduce: CMakeLists.txt PROJECT(qtmain) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) FIND_PACKAGE(Qt4 4.5.3 COMPONENTS QtCore QtGui QtMain) INCLUDE(${QT_USE_FILE}) ADD_EXECUTABLE(qtmain WIN32 qtmain.cpp) TARGET_LINK_LIBRARIES(qtmain ${QT_LIBRARIES}) qmain.cpp #include <QApplication> #include <QMainWindow> int main(int argc, char* argv[]) { QApplication app(argc, argv); QMainWindow mainWin; mainWin.show(); return app.exec(); } Additional Information: Test runs of the example: Win32 / CMake 2.8.3: -- Found Qt-Version 4.6.2 (using c:/data/software/qt/qt-4.6.2-vs2008-x64/bin/qmake.exe) Win32 / CMake 2.8.3.20110202-g4d4d5: -- Could NOT find Qt4 (missing: QT_QTMAIN_INCLUDE_DIR) (found suitable version "4.6.2", required is "4.5.3") Linux / CMake 2.8.3: -- Found Qt-Version 4.5.4 (using /usr/bin/qmake) Linux / CMake 2.8.3.20110202-g4d4d5: -- Could NOT find Qt4 (missing: QT_QTMAIN_INCLUDE_DIR QT_QTMAIN_LIBRARY) (found suitable version "4.5.4", required is "4.5.3") ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-02-03 05:04 Rolf Eike Beer New Issue ====================================================================== _______________________________________________ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers