1
0
cuberite-2a/src/Bindings/CMakeLists.txt

23 lines
751 B
CMake
Raw Normal View History

2013-12-10 13:41:43 -05:00
cmake_minimum_required (VERSION 2.6)
project (MCServer)
include_directories ("${PROJECT_SOURCE_DIR}/../")
2013-12-18 18:14:11 -05:00
if (WIN32)
add_executable(tolua++.exe IMPORTED)
else ()
message(WARNING "cannot rebuild bindings when not on windows")
endif()
2013-12-10 17:43:21 -05:00
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
2013-12-18 18:14:11 -05:00
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua++.exe
2013-12-10 17:43:21 -05:00
)
2013-12-18 18:14:11 -05:00
add_library(Bindings PluginManager LuaState WebPlugin Bindings)