2017-03-08 20:15:41 +01:00
|
|
|
@ECHO OFF
|
2019-04-06 11:29:19 +02:00
|
|
|
IF "%WIN32_DEV%" == "" SET WIN32_DEV="C:\Libraries"
|
|
|
|
SET CMAKE_ROOT=%ProgramFiles%\CMake
|
|
|
|
IF "%LUA_DEV%" == "" SET LUA_DEV="%ProgramFiles(x86)%/Lua/5.1"
|
2020-11-14 17:12:36 +01:00
|
|
|
SET VSVERSION=16
|
2017-03-08 20:15:41 +01:00
|
|
|
SET SRCDIR=%CD%
|
2019-04-06 11:29:19 +02:00
|
|
|
REM CD ..
|
|
|
|
REM SET ERESSEA=%CD%
|
|
|
|
REM CD %SRCDIR%
|
2017-03-08 20:15:41 +01:00
|
|
|
|
|
|
|
IF exist build-vs%VSVERSION% goto HAVEDIR
|
|
|
|
mkdir build-vs%VSVERSION%
|
|
|
|
:HAVEDIR
|
|
|
|
cd build-vs%VSVERSION%
|
2019-04-07 17:55:04 +02:00
|
|
|
IF NOT EXIST CMakeCache.txt GOTO NOCACHE
|
|
|
|
DEL CMakeCache.txt
|
|
|
|
:NOCACHE
|
2020-11-14 17:12:36 +01:00
|
|
|
"%CMAKE_ROOT%\bin\cmake.exe" -G "Visual Studio %VSVERSION%" -A Win32 -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%SRCDIR%/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
2017-03-08 20:15:41 +01:00
|
|
|
PAUSE
|