forked from github/server
fix windows slashes
cmake doesn't like backslashes, but has the tools to fix them added a build script for VS2013 (Version 12)
This commit is contained in:
parent
0ae8737062
commit
82aeb4b241
|
@ -1,6 +1,13 @@
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
|
if (WIN32)
|
||||||
|
FILE(TO_CMAKE_PATH "${CMAKE_MODULE_PATH}" CMAKE_MODULE_PATH )
|
||||||
|
FILE(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH )
|
||||||
|
message(status "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
|
||||||
|
endif(WIN32)
|
||||||
|
|
||||||
project (eressea-server C)
|
project (eressea-server C)
|
||||||
|
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
INCLUDE (CheckIncludeFiles)
|
INCLUDE (CheckIncludeFiles)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
mkdir build-vs10
|
SET VSVERSION=10
|
||||||
cd build-vs10
|
SET ERESSEA=%Userprofile%/Documents/Eressea
|
||||||
SET ERESSEA=%Userprofile%/Documents/Projects/Eressea
|
|
||||||
"%ProgramFiles(x86)%\CMake 2.8\bin\cmake.exe" -G "Visual Studio 10" -DCMAKE_PREFIX_PATH="%ProgramFiles(x86)%/Lua/5.1;%ERESSEA%/dependencies-win32" -DCMAKE_MODULE_PATH="%ERESSEA%/server/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
mkdir build-vs%VSVERSION%
|
||||||
|
cd build-vs%VSVERSION%
|
||||||
|
"%ProgramFiles(x86)%\CMake 2.8\bin\cmake.exe" -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%ProgramFiles(x86)%/Lua/5.1;%ERESSEA%/dependencies-win32" -DCMAKE_MODULE_PATH="%ERESSEA%/server/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
mkdir build-vs11
|
SET VSVERSION=11
|
||||||
cd build-vs11
|
SET ERESSEA=%Userprofile%/Documents/Eressea
|
||||||
"c:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -G "Visual Studio 11" -DCMAKE_PREFIX_PATH="C:/Program Files (x86)/Lua/5.1;C:/Users/Enno/Documents/Eressea/dependencies-win32" -DCMAKE_MODULE_PATH="C:/Users/Enno/Documents/Eressea/server/cmake/Modules" ..
|
|
||||||
|
mkdir build-vs%VSVERSION%
|
||||||
|
cd build-vs%VSVERSION%
|
||||||
|
"%ProgramFiles(x86)%\CMake 2.8\bin\cmake.exe" -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%ProgramFiles(x86)%/Lua/5.1;%ERESSEA%/dependencies-win32" -DCMAKE_MODULE_PATH="%ERESSEA%/server/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
@ECHO OFF
|
||||||
|
SET VSVERSION=12
|
||||||
|
SET ERESSEA=%Userprofile%/Documents/Eressea
|
||||||
|
|
||||||
|
mkdir build-vs%VSVERSION%
|
||||||
|
cd build-vs%VSVERSION%
|
||||||
|
"%ProgramFiles(x86)%\CMake 2.8\bin\cmake.exe" -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%ProgramFiles(x86)%/Lua/5.1;%ERESSEA%/dependencies-win32" -DCMAKE_MODULE_PATH="%ERESSEA%/server/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
Loading…
Reference in New Issue