diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-07 17:04:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-07 17:04:57 (GMT) |
commit | d2cb6fec6f586ca3239499a7d1bfb536de84a52a (patch) | |
tree | 2b61e2d77c14e9551ab0fbea3018846e9c23aeea /Modules/FindQt3.cmake | |
parent | 44e55c85b50cda5405fe15d97172de724444c5df (diff) | |
download | CMake-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.cmake | 14 |
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" |