summaryrefslogtreecommitdiffstats
path: root/Modules/UseQt4.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-04-27 19:07:23 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2006-04-27 19:07:23 (GMT)
commitf59ad1aa6ecb6e8a2489e826addb5e11def1343e (patch)
tree31ad965aab79ff681c46573c20135101c8625343 /Modules/UseQt4.cmake
parentf0e2563cc6f62bad24d444b45f131f3e290891cf (diff)
downloadCMake-f59ad1aa6ecb6e8a2489e826addb5e11def1343e.zip
CMake-f59ad1aa6ecb6e8a2489e826addb5e11def1343e.tar.gz
CMake-f59ad1aa6ecb6e8a2489e826addb5e11def1343e.tar.bz2
ENH: -apply the patches by Clinton Stimpson and Kenneth Moreland which fix
some QtMain issues on Windows ENH: -sync with KDE svn FindQt4, which features a lot of enhancements Alex
Diffstat (limited to 'Modules/UseQt4.cmake')
-rw-r--r--Modules/UseQt4.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/UseQt4.cmake b/Modules/UseQt4.cmake
index d0d8638..62a1edf 100644
--- a/Modules/UseQt4.cmake
+++ b/Modules/UseQt4.cmake
@@ -103,6 +103,19 @@ IF (QT_USE_QTDESIGNER)
ENDIF (QT_QTDESIGNER_FOUND)
ENDIF (QT_USE_QTDESIGNER)
+IF (QT_USE_QTMAIN)
+ IF (WIN32)
+ IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
+ SET(QT_LIBRARIES ${QT_LIBRARIES}
+ optimized "${QT_QTMAIN_LIBRARY}"
+ debug "${QT_QTMAIN_LIBRARY_DEBUG}"
+ )
+ ELSE (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
+ SET(QT_LIBRARIES ${QT_LIBRARIES} "${QT_QTMAIN_LIBRARY}")
+ ENDIF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
+ ENDIF (WIN32)
+ENDIF (QT_USE_QTMAIN)
+
IF (QT_USE_QTMOTIF)
IF (QT_QTMOTIF_FOUND)
INCLUDE_DIRECTORIES(${QT_QTMOTIF_INCLUDE_DIR})