summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt3.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-07 17:04:57 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-07 17:04:57 (GMT)
commitd2cb6fec6f586ca3239499a7d1bfb536de84a52a (patch)
tree2b61e2d77c14e9551ab0fbea3018846e9c23aeea /Modules/FindQt3.cmake
parent44e55c85b50cda5405fe15d97172de724444c5df (diff)
downloadCMake-d2cb6fec6f586ca3239499a7d1bfb536de84a52a.zip
CMake-d2cb6fec6f586ca3239499a7d1bfb536de84a52a.tar.gz
CMake-d2cb6fec6f586ca3239499a7d1bfb536de84a52a.tar.bz2
ENH: try to find qt3 better
Diffstat (limited to 'Modules/FindQt3.cmake')
-rw-r--r--Modules/FindQt3.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/FindQt3.cmake b/Modules/FindQt3.cmake
index 93034f0..3fb188d 100644
--- a/Modules/FindQt3.cmake
+++ b/Modules/FindQt3.cmake
@@ -120,6 +120,14 @@ FIND_LIBRARY(QT_QASSISTANTCLIENT_LIBRARY
/usr/X11R6/lib
)
+# qt 3 should prefer QTDIR over the PATH
+FIND_PROGRAM(QT_MOC_EXECUTABLE
+ NAMES moc moc-qt3
+ PATHS
+ $ENV{QTDIR}/bin
+ NO_DEFAULT_PATH
+)
+
FIND_PROGRAM(QT_MOC_EXECUTABLE
NAMES moc moc-qt3
PATHS
@@ -140,6 +148,12 @@ IF(QT_MOC_EXECUTABLE)
ELSE(QT_MOC_EXECUTABLE)
ENDIF(QT_MOC_EXECUTABLE)
+# qt 3 should prefer QTDIR over the PATH
+FIND_PROGRAM(QT_UIC_EXECUTABLE uic
+ PATHS
+ $ENV{QTDIR}/bin
+ NO_DEFAULT_PATH
+)
FIND_PROGRAM(QT_UIC_EXECUTABLE uic
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.1;InstallDir]/include/Qt"
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\3.2.0;InstallDir]/include/Qt"