summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-26 00:12:51 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-26 00:12:51 +0100
commit3f66a1934942adf3f4e81f49fe3c18476aed0177 (patch)
treee31c4ebe3849271dfb46223322cb883ac4f1bce0 /CMakeLists.txt
parent760184661da4b96cc390ceb161646c8a83712acf (diff)
downloadmana-3f66a1934942adf3f4e81f49fe3c18476aed0177.tar.gz
mana-3f66a1934942adf3f4e81f49fe3c18476aed0177.tar.bz2
mana-3f66a1934942adf3f4e81f49fe3c18476aed0177.tar.xz
mana-3f66a1934942adf3f4e81f49fe3c18476aed0177.zip
Prune the enet and manaserv files dependency of the 0.5 binary.
Only using cmake conditions and an ifdef. This will greatly help packaging the mana 0.5 version on other distros.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1418e938..00139b55 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 ".")
@@ -46,7 +47,11 @@ ELSE (WIN32)
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)