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:
Enno Rehling 2014-03-15 22:02:49 -07:00
parent 0ae8737062
commit 82aeb4b241
4 changed files with 26 additions and 7 deletions

View File

@ -1,6 +1,13 @@
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)
enable_testing()
INCLUDE (CheckIncludeFiles)

View File

@ -1,5 +1,7 @@
@ECHO OFF
mkdir build-vs10
cd build-vs10
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 ..
SET VSVERSION=10
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 ..

View File

@ -1,4 +1,7 @@
@ECHO OFF
mkdir build-vs11
cd build-vs11
"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" ..
SET VSVERSION=11
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 ..

7
vs2013-build.bat Normal file
View File

@ -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 ..