diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Bindings/CMakeLists.txt | 16 | ||||
-rw-r--r-- | src/Blocks/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/CMakeLists.txt | 36 | ||||
-rw-r--r-- | src/Entities/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/Generating/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/HTTPServer/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/Items/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/Mobs/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/OSSupport/CMakeLists.txt | 10 | ||||
-rw-r--r-- | src/Protocol/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/Simulator/CMakeLists.txt | 11 | ||||
-rw-r--r-- | src/WorldStorage/CMakeLists.txt | 11 |
12 files changed, 145 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..b2376731e --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,36 @@ + +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) +add_subdirectory(UI) + + +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 UI zlib) 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..e1ba299fc --- /dev/null +++ b/src/Generating/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(Generating ${SOURCE}) 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..d431bdf6a --- /dev/null +++ b/src/WorldStorage/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(WorldStorage ${SOURCE}) |