2020-12-08 22:02:46 +01:00
|
|
|
@ECHO OFF
|
|
|
|
IF "%WIN32_DEV%" == "" SET WIN32_DEV="C:\Libraries"
|
|
|
|
SET CMAKE_ROOT=%ProgramFiles%\CMake
|
|
|
|
IF "%LUA_DEV%" == "" SET LUA_DEV="%ProgramFiles(x86)%/Lua/5.1"
|
|
|
|
SET VSVERSION=16
|
|
|
|
SET SRCDIR=%CD%
|
|
|
|
REM CD ..
|
|
|
|
REM SET ERESSEA=%CD%
|
|
|
|
REM CD %SRCDIR%
|
|
|
|
|
2021-02-13 12:10:47 +01:00
|
|
|
SET CMAKE_MODULES="%CMAKE_ROOT%\share\cmake-3.19\Modules"
|
2021-02-13 11:23:36 +01:00
|
|
|
|
2020-12-08 22:02:46 +01:00
|
|
|
IF exist build-vs%VSVERSION% goto HAVEDIR
|
|
|
|
mkdir build-vs%VSVERSION%
|
|
|
|
:HAVEDIR
|
|
|
|
cd build-vs%VSVERSION%
|
|
|
|
IF NOT EXIST CMakeCache.txt GOTO NOCACHE
|
|
|
|
DEL CMakeCache.txt
|
|
|
|
:NOCACHE
|
2021-02-13 11:23:36 +01:00
|
|
|
"%CMAKE_ROOT%\bin\cmake.exe" -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -A Win32 -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%CMAKE_MODULES%" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
2020-12-08 22:02:46 +01:00
|
|
|
PAUSE
|