forked from github/server
correct linker flags for picking visual studio runtime library.
This commit is contained in:
parent
a2d6881f61
commit
47a9728db9
|
@ -1,16 +1,3 @@
|
||||||
*~
|
|
||||||
*.bak
|
|
||||||
bin/
|
|
||||||
build*/
|
|
||||||
game-e2/data
|
|
||||||
game-e2/*.log*
|
|
||||||
game-e2/reports/
|
|
||||||
game-e3/data/
|
|
||||||
game-e3/*.log*
|
|
||||||
game-e3/reports/
|
|
||||||
*.log
|
|
||||||
tags
|
|
||||||
|
|
||||||
# Microsoft Visual Studio build artefacts
|
# Microsoft Visual Studio build artefacts
|
||||||
src/Debug/
|
src/Debug/
|
||||||
src/Release/
|
src/Release/
|
||||||
|
@ -27,3 +14,16 @@ ipch/
|
||||||
*.suo
|
*.suo
|
||||||
*.user
|
*.user
|
||||||
|
|
||||||
|
*~
|
||||||
|
*.bak
|
||||||
|
bin/
|
||||||
|
build*/
|
||||||
|
game-e2/data
|
||||||
|
game-e2/*.log*
|
||||||
|
game-e2/reports/
|
||||||
|
game-e3/data/
|
||||||
|
game-e3/*.log*
|
||||||
|
game-e3/reports/
|
||||||
|
*.log
|
||||||
|
*.log.*
|
||||||
|
tags
|
||||||
|
|
|
@ -16,7 +16,11 @@ INCLUDE_DIRECTORIES (${CMAKE_BINARY_DIR}/include)
|
||||||
|
|
||||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -DHAVE__BOOL")
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -DHAVE__BOOL")
|
||||||
ELSEIF(MSVC)
|
elseif(MSVC)
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||||
|
"${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrt.lib")
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS_RELEASE
|
||||||
|
"${CMAKE_EXE_LINKER_FLAGS_RELEASE} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcd.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib")
|
||||||
ELSE(CMAKE_COMPILER_IS_GNUCC)
|
ELSE(CMAKE_COMPILER_IS_GNUCC)
|
||||||
MESSAGE(STATUS "Unknown compiler ${CMAKE_C_COMPILER_ID}")
|
MESSAGE(STATUS "Unknown compiler ${CMAKE_C_COMPILER_ID}")
|
||||||
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# What is this?
|
||||||
|
|
||||||
|
This repository contains an the source code for the Play-by-Mail strategy game [Eressea](http://www.eressea.de/).
|
||||||
|
|
||||||
|
# Prerequisites
|
||||||
|
|
||||||
|
Eressea depends on a number of external libraries. On a recent Debian-based Linux system, this is the apt-get command to install all of them:
|
||||||
|
|
||||||
|
sudo apt-get install git cmake gcc make libxml2-dev liblua5.2-dev libtolua-dev libncurses5-dev libsqlite3-dev
|
||||||
|
|
||||||
|
# How to check out and build the Eressea server
|
||||||
|
|
||||||
|
This repository relies heavily on the use of submodules, and it pulls in most of the code from those. The build system being used is cmake, which can create Makefiles on Unix, or Visual Studio project files on Windows. Here's how you clone and build the source on Ubuntu:
|
||||||
|
|
||||||
|
git clone git://github.com/eressea/server.git
|
||||||
|
cd server
|
||||||
|
git submodule update --init
|
||||||
|
./configure
|
||||||
|
|
||||||
|
If you got this far and all went well, you have built a server (it is linked from the `game` subdirectory), and it will have passed some basic functionality tests.
|
Loading…
Reference in New Issue