summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 01:52:52 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 01:52:52 +0100
commite2549dfcb295b5c68ad540c71442d1524adb3d0f (patch)
tree570d21d9eb630119e628f7b2558922656d894c07 /CMakeLists.txt
parentcompiling sqlite (diff)
downloadcuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.gz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.bz2
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.lz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.xz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.zst
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b59ade49d..d262ecb5c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,9 @@ cmake_minimum_required (VERSION 2.6)
project (MCServer)
set(CMAKE_CXX_FLAGS_BAK ${CMAKE_CXX_FLAGS})
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
+set(CMAKE_C_FLAGS_BAK ${CMAKE_C_FLAGS})
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
set(CMAKE_BUILD_TYPE_BAK ${CMAKE_BUILD_TYPE})
set(CMAKE_BUILD_TYPE "Release")
@@ -14,10 +16,14 @@ add_subdirectory(lib/zlib/)
add_subdirectory(lib/lua/)
add_subdirectory(lib/tolua++/)
add_subdirectory(lib/sqlite/)
+add_subdirectory(lib/expat/)
+add_subdirectory(lib/luaexpat/)
#TODo: set -Wall -Werror -Wextra
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK}")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_BAK}")
set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE_BAK}")
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic")
add_subdirectory (src)