summaryrefslogtreecommitdiffstats
path: root/src/Bindings/CMakeLists.txt
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-10 23:43:21 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-10 23:43:21 +0100
commitdaccfd9c6e7e6644dae92057cf2c52f5834377a1 (patch)
treea82866d72608d7f3da310d41c0569ac43421c70f /src/Bindings/CMakeLists.txt
parentremoved more accedentailly commited object files (diff)
downloadcuberite-daccfd9c6e7e6644dae92057cf2c52f5834377a1.tar
cuberite-daccfd9c6e7e6644dae92057cf2c52f5834377a1.tar.gz
cuberite-daccfd9c6e7e6644dae92057cf2c52f5834377a1.tar.bz2
cuberite-daccfd9c6e7e6644dae92057cf2c52f5834377a1.tar.lz
cuberite-daccfd9c6e7e6644dae92057cf2c52f5834377a1.tar.xz
cuberite-daccfd9c6e7e6644dae92057cf2c52f5834377a1.tar.zst
cuberite-daccfd9c6e7e6644dae92057cf2c52f5834377a1.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt
index 42a6f205f..f2c2fa3ab 100644
--- a/src/Bindings/CMakeLists.txt
+++ b/src/Bindings/CMakeLists.txt
@@ -4,4 +4,11 @@ project (MCServer)
include_directories ("${PROJECT_SOURCE_DIR}/../")
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/foo.c
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/bar.c ${CMAKE_CURRENT_BINARY_DIR}/foo.c
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bar.c
+ )
+execute_process(COMMAND "./tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg)
+
add_library(Bindings PluginManager LuaState WebPlugin)