2013-12-10 18:41:43 +00:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
2013-12-10 22:43:21 +00:00
|
|
|
ADD_CUSTOM_COMMAND(
|
2013-12-10 22:59:53 +00:00
|
|
|
#add any new generated bindings here
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Bindings.cpp ${CMAKE_CURRENT_BINARY_DIR}/Bindings.h
|
|
|
|
#command execuded to regerate bindings
|
2013-12-18 23:54:55 +00:00
|
|
|
COMMAND tolua -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
|
2013-12-10 22:59:53 +00:00
|
|
|
#add any new generation dependencies here
|
2013-12-18 23:54:55 +00:00
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua
|
2013-12-10 22:43:21 +00:00
|
|
|
)
|
|
|
|
|
2013-12-19 00:24:47 +00:00
|
|
|
#add cpp files here
|
|
|
|
add_library(Bindings PluginManager LuaState WebPlugin Bindings ManualBindings LuaWindow Plugin PluginLua WebPlugin)
|
|
|
|
|
|
|
|
target_link_libraries(Bindings lua sqlite)
|