diff options
author | Mattes D <github@xoft.cz> | 2014-07-06 14:44:52 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-07-06 14:44:52 +0200 |
commit | 7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1 (patch) | |
tree | a658f12400d2f061f60d44aadb1db005a514438f /src/CMakeLists.txt | |
parent | Fixed crafting grid updating. (diff) | |
parent | Tolua generates LuaState_Call.inc file. (diff) | |
download | cuberite-7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1.tar cuberite-7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1.tar.gz cuberite-7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1.tar.bz2 cuberite-7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1.tar.lz cuberite-7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1.tar.xz cuberite-7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1.tar.zst cuberite-7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1.zip |
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 55f3028ef..5ff1c4e3c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -12,6 +12,7 @@ set(BINDING_DEPENDECIES tolua ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/AllToLua.pkg + Bindings/gen_LuaState_Call.lua Bindings/LuaFunctions.h Bindings/LuaWindow.h Bindings/Plugin.h @@ -79,13 +80,19 @@ set(BINDING_DEPENDECIES World.h ) +# List all the files that are generated as part of the Bindings build process +set (BINDING_OUTPUTS + ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/Bindings.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/Bindings.h + ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/LuaState_Call.inc +) + include_directories(Bindings) include_directories(.) if (WIN32) ADD_CUSTOM_COMMAND( - # add any new generated bindings here - OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/Bindings.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/Bindings.h + OUTPUT ${BINDING_OUTPUTS} # Copy the Lua DLL into the Bindings folder, so that tolua can run from there: COMMAND ${CMAKE_COMMAND} -E copy_if_different ../../MCServer/lua51.dll ./lua51.dll |