summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/CMakeLists.txt16
-rw-r--r--src/Blocks/CMakeLists.txt7
-rw-r--r--src/CMakeLists.txt34
-rw-r--r--src/Entities/CMakeLists.txt11
-rw-r--r--src/Generating/CMakeLists.txt7
-rw-r--r--src/HTTPServer/CMakeLists.txt7
-rw-r--r--src/Items/CMakeLists.txt7
-rw-r--r--src/Mobs/CMakeLists.txt11
-rw-r--r--src/OSSupport/CMakeLists.txt10
-rw-r--r--src/Protocol/CMakeLists.txt7
-rw-r--r--src/Simulator/CMakeLists.txt11
-rw-r--r--src/WorldStorage/CMakeLists.txt7
12 files changed, 135 insertions, 0 deletions
diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt
new file mode 100644
index 000000000..cee61c13c
--- /dev/null
+++ b/src/Bindings/CMakeLists.txt
@@ -0,0 +1,16 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+ ADD_CUSTOM_COMMAND(
+#add any new generated bindings here
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Bindings.cpp ${CMAKE_CURRENT_BINARY_DIR}/Bindings.h
+#command execuded to regerate bindings
+ COMMAND "./tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
+#add any new generation dependencies here
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg
+ )
+
+add_library(Bindings PluginManager LuaState WebPlugin)
diff --git a/src/Blocks/CMakeLists.txt b/src/Blocks/CMakeLists.txt
new file mode 100644
index 000000000..6fededb65
--- /dev/null
+++ b/src/Blocks/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+add_library(Blocks BlockHandler)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 000000000..c5d298075
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,34 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03")
+endif()
+
+include_directories (SYSTEM "${PROJECT_SOURCE_DIR}/../lib/")
+include_directories (SYSTEM "${PROJECT_SOURCE_DIR}/../lib/jsoncpp/include")
+
+add_subdirectory(OSSupport)
+add_subdirectory(HTTPServer)
+add_subdirectory(Bindings)
+add_subdirectory(Items)
+add_subdirectory(Blocks)
+add_subdirectory(Protocol)
+add_subdirectory(Generating)
+add_subdirectory(WorldStorage)
+add_subdirectory(Mobs)
+add_subdirectory(Entities)
+add_subdirectory(Simulator)
+
+file(GLOB SOURCE
+ "*.cpp"
+)
+
+list(REMOVE_ITEM SOURCE "${PROJECT_SOURCE_DIR}/StackWalker.cpp" "${PROJECT_SOURCE_DIR}/LeakFinder.cpp")
+
+add_executable(../MCServer/MCServer ${SOURCE})
+
+target_link_libraries(../MCServer/MCServer OSSupport HTTPServer iniFile Bindings Items Blocks)
+target_link_libraries(../MCServer/MCServer Protocol Generating WorldStorage jsoncpp cryptopp)
+target_link_libraries(../MCServer/MCServer Mobs Entities Simulator)
diff --git a/src/Entities/CMakeLists.txt b/src/Entities/CMakeLists.txt
new file mode 100644
index 000000000..85cc45494
--- /dev/null
+++ b/src/Entities/CMakeLists.txt
@@ -0,0 +1,11 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+file(GLOB SOURCE
+ "*.cpp"
+)
+
+add_library(Entities ${SOURCE})
diff --git a/src/Generating/CMakeLists.txt b/src/Generating/CMakeLists.txt
new file mode 100644
index 000000000..f9565aba4
--- /dev/null
+++ b/src/Generating/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+add_library(Generating ChunkGenerator)
diff --git a/src/HTTPServer/CMakeLists.txt b/src/HTTPServer/CMakeLists.txt
new file mode 100644
index 000000000..b94aa5306
--- /dev/null
+++ b/src/HTTPServer/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+add_library(HTTPServer HTTPServer HTTPConnection HTTPFormParser HTTPMessage MultipartParser)
diff --git a/src/Items/CMakeLists.txt b/src/Items/CMakeLists.txt
new file mode 100644
index 000000000..44a9f594f
--- /dev/null
+++ b/src/Items/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+add_library(Items ItemHandler)
diff --git a/src/Mobs/CMakeLists.txt b/src/Mobs/CMakeLists.txt
new file mode 100644
index 000000000..87fbfd2fc
--- /dev/null
+++ b/src/Mobs/CMakeLists.txt
@@ -0,0 +1,11 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+file(GLOB SOURCE
+ "*.cpp"
+)
+
+add_library(Mobs ${SOURCE})
diff --git a/src/OSSupport/CMakeLists.txt b/src/OSSupport/CMakeLists.txt
new file mode 100644
index 000000000..8eeff9d9b
--- /dev/null
+++ b/src/OSSupport/CMakeLists.txt
@@ -0,0 +1,10 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+file(GLOB SOURCE
+ "*.cpp"
+)
+
+add_library(OSSupport ${SOURCE})
diff --git a/src/Protocol/CMakeLists.txt b/src/Protocol/CMakeLists.txt
new file mode 100644
index 000000000..53dc295c0
--- /dev/null
+++ b/src/Protocol/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+add_library(Protocol ProtocolRecognizer)
diff --git a/src/Simulator/CMakeLists.txt b/src/Simulator/CMakeLists.txt
new file mode 100644
index 000000000..4f3f1ad0e
--- /dev/null
+++ b/src/Simulator/CMakeLists.txt
@@ -0,0 +1,11 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+file(GLOB SOURCE
+ "*.cpp"
+)
+
+add_library(Simulator ${SOURCE})
diff --git a/src/WorldStorage/CMakeLists.txt b/src/WorldStorage/CMakeLists.txt
new file mode 100644
index 000000000..5b3e1df54
--- /dev/null
+++ b/src/WorldStorage/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+include_directories ("${PROJECT_SOURCE_DIR}/../")
+
+add_library(WorldStorage WorldStorage)