summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-08-01 13:12:18 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-08-01 13:12:18 (GMT)
commitc75fb61f3c460305ec6fd7e207681fb2239beaad (patch)
tree5e04738f355e798a03a599f1349c14c2af2f907a
parent23f2c1bf9cfbad695b40f255e9bf61273006db15 (diff)
downloadCMake-c75fb61f3c460305ec6fd7e207681fb2239beaad.zip
CMake-c75fb61f3c460305ec6fd7e207681fb2239beaad.tar.gz
CMake-c75fb61f3c460305ec6fd7e207681fb2239beaad.tar.bz2
ENH: put back find qtmain
-rw-r--r--Modules/FindQt4.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index e06a19e..66f7882 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -535,6 +535,14 @@ IF (QT4_QMAKE_FOUND)
FIND_LIBRARY(QT_QTDESIGNER_LIBRARY_RELEASE NAMES QtDesigner QtDesigner4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH)
FIND_LIBRARY(QT_QTDESIGNER_LIBRARY_DEBUG NAMES QtDesigner_debug QtDesignerd4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH)
+ # Set QT_QTMAIN_LIBRARY
+ IF(WIN32)
+ FIND_LIBRARY(QT_QTMAIN_LIBRARY_RELEASE NAMES qtmain PATHS ${QT_LIBRARY_DIR}
+ NO_DEFAULT_PATH)
+ FIND_LIBRARY(QT_QTMAIN_LIBRARY_DEBUG NAMES qtmaind PATHS ${QT_LIBRARY_DIR}
+ NO_DEFAULT_PATH)
+ ENDIF(WIN32)
+
############################################
#
# Check the existence of the libraries.