summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-01-28 20:44:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-01-28 20:44:45 (GMT)
commite44be57f6d7fac5c0a8e72a75e9a5a9a2d561f80 (patch)
tree973663d2800051c4bd268a7ff5805e11c79163e5 /Modules
parenta3c282ebbd4d6bdeed3beb3a2da009fb2347060f (diff)
downloadCMake-e44be57f6d7fac5c0a8e72a75e9a5a9a2d561f80.zip
CMake-e44be57f6d7fac5c0a8e72a75e9a5a9a2d561f80.tar.gz
CMake-e44be57f6d7fac5c0a8e72a75e9a5a9a2d561f80.tar.bz2
ENH: change FIND_FILE to FIND_PROGRAM
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindFLTK.cmake2
-rw-r--r--Modules/FindQt.cmake37
2 files changed, 10 insertions, 29 deletions
diff --git a/Modules/FindFLTK.cmake b/Modules/FindFLTK.cmake
index 56b4c36..207cd4f 100644
--- a/Modules/FindFLTK.cmake
+++ b/Modules/FindFLTK.cmake
@@ -86,7 +86,7 @@ IF(FLTK_INCLUDE_DIR)
)
ENDIF(FLTK_INCLUDE_DIR)
# Find Fluid
-FIND_FILE(FLTK_FLUID_EXECUTABLE fluid
+FIND_PROGRAM(FLTK_FLUID_EXECUTABLE fluid
${path} ${FLTK_INCLUDE_DIR}/fluid
)
# Enable the Wrap UI command
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index cdc5604..d52d962 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -17,55 +17,36 @@
-IF (UNIX)
-
- FIND_PATH(QT_INCLUDE_DIR qt.h
+FIND_PATH(QT_INCLUDE_DIR qt.h
$ENV{QTDIR}/include
/usr/local/qt/include
/usr/local/include
- /usr/include
+ /usr/include
+ C:/Progra~1/qt/include
)
- FIND_LIBRARY(QT_QT_LIBRARY qt
+FIND_LIBRARY(QT_QT_LIBRARY qt
$ENV{QTDIR}/lib
/usr/local/qt/lib
/usr/local/lib
/usr/lib
+ C:/Progra~1/qt/lib
)
- FIND_FILE(QT_MOC_EXECUTABLE moc
- $ENV{QTDIR}/bin
+FIND_PROGRAM(QT_MOC_EXECUTABLE moc
+ $ENV{QTDIR}/bin C:/Progra~1/qt/bin
)
- FIND_FILE(QT_UIC_EXECUTABLE uic
- $ENV{QTDIR}/bin
+FIND_PROGRAM(QT_UIC_EXECUTABLE uic
+ $ENV{QTDIR}/bin C:/Progra~1/qt/bin
)
-ENDIF (UNIX)
IF (WIN32)
- # Not sure where to look for Qt under windows
- # Assume that QTDIR has been set
-
- FIND_PATH(QT_INCLUDE_DIR qt.h
- $ENV{QTDIR}/include C:/Progra~1/qt/include) )
-
- FIND_LIBRARY(QT_QT_LIBRARY qt
- $ENV{QTDIR}/lib C:/Progra~1/qt/lib )
-
FIND_LIBRARY(QT_QTMAIN_LIBRARY qtmain
$ENV{QTDIR}/lib C:/Progra~1/qt/lib
DOC "This Library is only needed by and included with Qt3 on MSWindows. It should be NOTFOUND, undefined or IGNORE otherwise."
)
-
- FIND_FILE(QT_MOC_EXECUTABLE moc.exe
- $ENV{QTDIR}/bin C:/Progra~1/qt/bin
- )
-
- FIND_FILE(QT_UIC_EXECUTABLE uic.exe
- $ENV{QTDIR}/bin C:/Progra~1/qt/bin
- )
-
ENDIF (WIN32)