2014-07-18 21:08:49 +00:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
|
|
|
SET (SRCS
|
|
|
|
Bindings.cpp
|
|
|
|
DeprecatedBindings.cpp
|
|
|
|
LuaChunkStay.cpp
|
|
|
|
LuaState.cpp
|
|
|
|
LuaWindow.cpp
|
|
|
|
ManualBindings.cpp
|
|
|
|
Plugin.cpp
|
|
|
|
PluginLua.cpp
|
|
|
|
PluginManager.cpp
|
|
|
|
WebPlugin.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
SET (HDRS
|
|
|
|
Bindings.h
|
|
|
|
DeprecatedBindings.h
|
|
|
|
LuaChunkStay.h
|
|
|
|
LuaFunctions.h
|
|
|
|
LuaState.h
|
|
|
|
LuaWindow.h
|
|
|
|
ManualBindings.h
|
|
|
|
Plugin.h
|
|
|
|
PluginLua.h
|
|
|
|
PluginManager.h
|
|
|
|
WebPlugin.h
|
|
|
|
tolua++.h
|
|
|
|
)
|
2014-07-18 22:27:50 +00:00
|
|
|
|
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(Bindings ${SRCS} ${HDRS})
|
|
|
|
|
|
|
|
target_link_libraries(Bindings lua sqlite tolualib polarssl)
|
|
|
|
endif()
|