@echo [INFO] Define default value for PTEID_DIR_QT_450_STATIC if not defined yet
@echo [INFO] Input PTEID_DIR_QT_450_STATIC=%PTEID_DIR_QT_450_STATIC%
@set FILE_TO_FIND="lib\qtmain.lib" "lib\qtmaind.lib" "lib\QtCore.lib" "lib\QtCored.lib" "lib\QtGui.lib" "lib\QtGuid.lib" "lib\QtXml.lib" "lib\QtXmld.lib" "plugins\imageformats\qjpeg.lib" "plugins\imageformats\qjpegd.lib"
@echo [INFO] Looking for files: %FILE_TO_FIND%

@set FILE_NOT_FOUND=
@for %%i in (%FILE_TO_FIND%) do @if not exist "%PTEID_DIR_QT_450_STATIC%\%%~i" set FILE_NOT_FOUND=%%~i
@if "%FILE_NOT_FOUND%"=="" goto find_qt450_static
@echo        Not found in "%PTEID_DIR_QT_450_STATIC%"

@set PTEID_DIR_QT_450_STATIC=%~dp0..\ThirdParty\Qt\4.5.0_static
@set FILE_NOT_FOUND=
@for %%i in (%FILE_TO_FIND%) do @if not exist "%PTEID_DIR_QT_450_STATIC%\%%~i" set FILE_NOT_FOUND=%%~i
@if "%FILE_NOT_FOUND%"=="" goto find_qt450_static
@echo        Not found in "%PTEID_DIR_QT_450_STATIC%"

@set PTEID_DIR_QT_450_STATIC=C:\Qt\4.5.0_static
@set FILE_NOT_FOUND=
@for %%i in (%FILE_TO_FIND%) do @if not exist "%PTEID_DIR_QT_450_STATIC%\%%~i" set FILE_NOT_FOUND=%%~i
@if "%FILE_NOT_FOUND%"=="" goto find_qt450_static
@echo        Not found in "%PTEID_DIR_QT_450_STATIC%"

@echo [ERROR] Qt 4.5.0 static library could not be found
@echo         If the path is different from "C:\Qt\4.5.0_static" or "%~dp0..\ThirdParty\Qt\4.5.0_static"
@echo         please define PTEID_DIR_QT_450_STATIC environment variable.
@exit /B 1

:find_qt450_static
@echo        Found in "%PTEID_DIR_QT_450_STATIC%"
@exit /B 0