Skip to content

Instantly share code, notes, and snippets.

@raghunayak
Created July 26, 2020 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raghunayak/26ee17a12afaa0e55a121fd884347f1c to your computer and use it in GitHub Desktop.
Save raghunayak/26ee17a12afaa0e55a121fd884347f1c to your computer and use it in GitHub Desktop.
:: 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