diff options
Diffstat (limited to 'src/Bindings/CMakeLists.txt')
-rw-r--r-- | src/Bindings/CMakeLists.txt | 7 |
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) |