summaryrefslogtreecommitdiffstats
path: root/src/Bindings/CMakeLists.txt
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-10 23:59:53 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-10 23:59:53 +0100
commit712f7d5a23015c08c2b838bd0107d21bdbbf5390 (patch)
treea63c9acc7259708a3ba2b6996bf9c533805a56ee /src/Bindings/CMakeLists.txt
parentmore cmake changes (diff)
downloadcuberite-712f7d5a23015c08c2b838bd0107d21bdbbf5390.tar
cuberite-712f7d5a23015c08c2b838bd0107d21bdbbf5390.tar.gz
cuberite-712f7d5a23015c08c2b838bd0107d21bdbbf5390.tar.bz2
cuberite-712f7d5a23015c08c2b838bd0107d21bdbbf5390.tar.lz
cuberite-712f7d5a23015c08c2b838bd0107d21bdbbf5390.tar.xz
cuberite-712f7d5a23015c08c2b838bd0107d21bdbbf5390.tar.zst
cuberite-712f7d5a23015c08c2b838bd0107d21bdbbf5390.zip
Diffstat (limited to 'src/Bindings/CMakeLists.txt')
-rw-r--r--src/Bindings/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt
index f2c2fa3ab..cee61c13c 100644
--- a/src/Bindings/CMakeLists.txt
+++ b/src/Bindings/CMakeLists.txt
@@ -5,10 +5,12 @@ 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
+#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
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg
)
-execute_process(COMMAND "./tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg)
add_library(Bindings PluginManager LuaState WebPlugin)