diff options
author | madmaxoft <github@xoft.cz> | 2014-07-01 22:19:14 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-01 22:29:39 +0200 |
commit | b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3 (patch) | |
tree | e499076c8f34ae09680b83ca46be240f9b56245b /src/CMakeLists.txt | |
parent | Initial codegen for LuaState_Call.inc. (diff) | |
download | cuberite-b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3.tar cuberite-b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3.tar.gz cuberite-b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3.tar.bz2 cuberite-b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3.tar.lz cuberite-b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3.tar.xz cuberite-b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3.tar.zst cuberite-b6d5d50b31e4fd0d34f42deb3aa51ebc8ae6f7f3.zip |
Diffstat (limited to '')
-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 b1b880b7b..c40e5edff 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 copy /y ..\\..\\MCServer\\lua51.dll . |