summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-25 15:56:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-25 15:56:49 (GMT)
commit9704c8f8c3ddb830eefd06e23d2a64e6b091a5a2 (patch)
tree7757a59a9d0c1dd6e469248b96156b09b6f62dfd /Modules
parent7eba286403b8f0e69f6787800b6e4ec09ccc2f39 (diff)
downloadCMake-9704c8f8c3ddb830eefd06e23d2a64e6b091a5a2.zip
CMake-9704c8f8c3ddb830eefd06e23d2a64e6b091a5a2.tar.gz
CMake-9704c8f8c3ddb830eefd06e23d2a64e6b091a5a2.tar.bz2
ENH: add qtmain to findqt
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt4.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index 8f8fa1d..ed2d055 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -568,6 +568,12 @@ 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.