Skip to content

Commit

Permalink
Add VS2017 and VS2019 batch files
Browse files Browse the repository at this point in the history
Also ensure to use Win32 architecture for all versions.

Specifying Win32 is necessary going forward with VS2019 on Win64 host.
  • Loading branch information
ensiform committed Jun 22, 2019
1 parent b099868 commit e8b5c13
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CreateVisualStudio2013Projects.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ if not defined FOUND (
)
if not exist build\nul (mkdir build)
pushd build
cmake -G "Visual Studio 12" -D CMAKE_INSTALL_PREFIX=../install ..
cmake -G "Visual Studio 12 2013" -A Win32 -D CMAKE_INSTALL_PREFIX=../install ..
popd
pause
2 changes: 1 addition & 1 deletion CreateVisualStudio2015Projects.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ if not defined FOUND (
)
if not exist build\nul (mkdir build)
pushd build
cmake -G "Visual Studio 14" -D CMAKE_INSTALL_PREFIX=../install ..
cmake -G "Visual Studio 14 2015" -A Win32 -D CMAKE_INSTALL_PREFIX=../install ..
popd
pause
18 changes: 18 additions & 0 deletions CreateVisualStudio2017Projects.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@REM Create OpenJK projects for Visual Studio 2017 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 15 2017" -A Win32 -D CMAKE_INSTALL_PREFIX=../install ..
popd
pause
18 changes: 18 additions & 0 deletions CreateVisualStudio2019Projects.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@REM Create OpenJK projects for Visual Studio 2017 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 16 2019" -A Win32 -D CMAKE_INSTALL_PREFIX=../install ..
popd
pause

0 comments on commit e8b5c13

Please sign in to comment.