From d9ecf51f5bbc2e6ca70fcf7352a5626017d0ea41 Mon Sep 17 00:00:00 2001 From: Tycho Bickerstaff Date: Tue, 10 Dec 2013 19:30:12 +0000 Subject: [PATCH] more cmake stuff --- src/Blocks/CMakeLists.txt | 7 +++++++ src/CMakeLists.txt | 6 ++++-- src/Items/CMakeLists.txt | 7 +++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 src/Blocks/CMakeLists.txt create mode 100644 src/Items/CMakeLists.txt 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 index 6d23d35f7..ada9e1a64 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,10 +6,12 @@ include_directories (SYSTEM "${PROJECT_SOURCE_DIR}/../lib/") add_subdirectory(OSSupport) add_subdirectory(HTTPServer) add_subdirectory(Bindings) +add_subdirectory(Items) +add_subdirectory(Blocks) set(SOURCE main Root MCLogger Authenticator StringUtils Server DeadlockDetect WebAdmin GroupManager CraftingRecipes FurnaceRecipe) set(SOURCE ${SOURCE} MonsterConfig) -add_executable(MCServer ${SOURCE}) +add_executable(../MCServer/MCServer ${SOURCE}) -target_link_libraries(MCServer OSSupport HTTPServer iniFile Bindings) +target_link_libraries(MCServer OSSupport HTTPServer iniFile Bindings Items) 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)