Created
July 26, 2020 13:55
-
-
Save raghunayak/26ee17a12afaa0e55a121fd884347f1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Call this batch file with source directory as command line argument. | |
@echo off | |
if ["%~1"]==[""] ( | |
goto end | |
) | |
if exist %~s1 ( | |
if exist %~s1\NUL ( | |
set dir_set=1 | |
cd %~1 | |
) | |
) | |
:end | |
@echo on | |
PUSHD . | |
CALL "C:\Qt\5.15.0\msvc2019\bin\qtenv2.bat" | |
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86 | |
POPD | |
set QTDIR=C:\Qt\5.15.0\msvc2019 | |
set QMAKESPEC=win32-msvc | |
:: Add jom to PATH | |
set PATH=c:\Qt\Tools\QtCreator\bin\;%PATH% | |
if not defined dir_set ( | |
pause | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment