summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-01 21:12:41 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-01 21:12:41 +0100
commit852de0424f7226dfd61d2779c1ea6413ac85d584 (patch)
treee902d1e91d760273cb1b1fba4c51cf3232ed6194 /CMakeLists.txt
parentf19b3786f3f000a84c8080594e398686e0298ca4 (diff)
parentbcd1d9aff41b5c152cafade7532242c94ac1f710 (diff)
downloadmana-852de0424f7226dfd61d2779c1ea6413ac85d584.tar.gz
mana-852de0424f7226dfd61d2779c1ea6413ac85d584.tar.bz2
mana-852de0424f7226dfd61d2779c1ea6413ac85d584.tar.xz
mana-852de0424f7226dfd61d2779c1ea6413ac85d584.zip
Merge branch '0.5'
Conflicts: po/de.po src/game.cpp src/resources/wallpaper.cpp
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 552ab6e8..b8743a62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,6 +30,7 @@ FIND_PACKAGE(Gettext)
OPTION(WITH_OPENGL "Enable OpenGL support" ON)
OPTION(ENABLE_NLS "Enable building of tranlations" ON)
+OPTION(ENABLE_MANASERV "Enable Manaserv support" OFF)
IF (WIN32)
SET(PKG_DATADIR ".")
@@ -37,16 +38,20 @@ IF (WIN32)
SET(LOCALEDIR ".")
CONFIGURE_FILE(src/winver.h.in src/winver.h)
ELSE (WIN32)
- IF (!OSX)
+ IF (NOT OSX)
OPTION(USE_X11 "Use X11 Clipboard functionality" ON)
- ENDIF (!OSX)
+ ENDIF ()
SET(PKG_DATADIR ${CMAKE_INSTALL_PREFIX}/share/mana)
SET(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
SET(PKG_BINDIR ${CMAKE_INSTALL_PREFIX}/bin)
ENDIF (WIN32)
ADD_SUBDIRECTORY(data)
-ADD_SUBDIRECTORY(libs/enet)
+
+IF (ENABLE_MANASERV)
+ ADD_SUBDIRECTORY(libs/enet)
+ENDIF()
+
ADD_SUBDIRECTORY(src)
IF (GETTEXT_FOUND AND ENABLE_NLS)