@echo off setlocal rem ########################################################################################### rem # rem # (c) Technical Software Engineering Plazotta 2019 rem # rem # CMAKE generator file for Windows VS rem # rem # History rem # 29.09.2019 / Plazotta rem # Template created. rem # rem ########################################################################################### rem # rem # This generator executes cmake based on the here configured values. All files will be rem # copied to the location as given in the parameter BUILDRESULTS. The solution file can rem # be found in this location. rem # In this case a normal Windows Visual Studio 2017 solution will be created. rem # rem ########################################################################################### rem Define build parameters set ARCHITECTURE=x64 set VISUAL_STUDIO=msvc2017 set GENERATOR=Visual Studio 15 2017 Win64 rem ########################################################################################### rem Concatenate build directory set BUILDRESULTS=%~dp0\..\BuildResults\%VISUAL_STUDIO%_%ARCHITECTURE% rem ########################################################################################### rem Create build directory and push into it if not exist %BUILDRESULTS% mkdir %BUILDRESULTS% pushd %BUILDRESULTS% rem ########################################################################################### rem Run CMake to build the solution echo running CMake... cmake.exe -G "%GENERATOR%" ../../Software rem ########################################################################################### popd pause