summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-07-06 14:44:52 +0200
committerMattes D <github@xoft.cz>2014-07-06 14:44:52 +0200
commit7e3b26e7ba7904f0200c15ff65102c6f26d3c3e1 (patch)
treea658f12400d2f061f60d44aadb1db005a514438f /src/CMakeLists.txt
parentFixed crafting grid updating. (diff)
parentTolua generates LuaState_Call.inc file. (diff)
downloadcuberite-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.txt11
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