diff options
author | madmaxoft <github@xoft.cz> | 2014-01-12 17:20:14 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-12 17:20:29 +0100 |
commit | 2ca06cc213b6dabcaca8be4609a652f26500fb1a (patch) | |
tree | b38ec93dcce17c6f23adbf21fe7543bd1dc61489 | |
parent | Merge pull request #529 from mc-server/derpstonerefactor (diff) | |
download | cuberite-2ca06cc213b6dabcaca8be4609a652f26500fb1a.tar cuberite-2ca06cc213b6dabcaca8be4609a652f26500fb1a.tar.gz cuberite-2ca06cc213b6dabcaca8be4609a652f26500fb1a.tar.bz2 cuberite-2ca06cc213b6dabcaca8be4609a652f26500fb1a.tar.lz cuberite-2ca06cc213b6dabcaca8be4609a652f26500fb1a.tar.xz cuberite-2ca06cc213b6dabcaca8be4609a652f26500fb1a.tar.zst cuberite-2ca06cc213b6dabcaca8be4609a652f26500fb1a.zip |
-rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 853138769..22c58fca3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,6 +27,16 @@ if (NOT MSVC) else () + # Generate the Bindings if they don't exist: + if (NOT EXISTS "${PROJECT_SOURCE_DIR}/Bindings/Bindings.cpp") + message("Bindings.cpp not found, generating now") + set(tolua_executable ${PROJECT_SOURCE_DIR}/Bindings/tolua++.exe) + execute_process( + COMMAND ${tolua_executable} -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/Bindings + ) + endif() + function(includefolder PATH) FILE(GLOB FOLDER_FILES "${PATH}/*.cpp" |