From 7789776f3e37b1464df4cde571d3d03fe1ec7fb6 Mon Sep 17 00:00:00 2001 From: Ensiform Date: Fri, 24 Jul 2015 22:08:09 -0500 Subject: [PATCH] General: Add batch file for creating VS 2015 projects. Requires CMake 3.1.3 or newer. --- CreateVisualStudio2015Projects.bat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CreateVisualStudio2015Projects.bat diff --git a/CreateVisualStudio2015Projects.bat b/CreateVisualStudio2015Projects.bat new file mode 100644 index 0000000000..c574594714 --- /dev/null +++ b/CreateVisualStudio2015Projects.bat @@ -0,0 +1,18 @@ +@REM Create OpenJK projects for Visual Studio 2015 using CMake +@echo off +for %%X in (cmake.exe) do (set FOUND=%%~$PATH:X) +if not defined FOUND ( + echo CMake was not found on your system. Please make sure you have installed CMake + echo from http://www.cmake.org/ and cmake.exe is installed to your system's PATH + echo environment variable. + echo. + pause + exit /b 1 +) else ( + echo Found CMake! +) +if not exist build\nul (mkdir build) +pushd build +cmake -G "Visual Studio 14" -D CMAKE_INSTALL_PREFIX=../install .. +popd +pause \ No newline at end of file