diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-19 00:14:11 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-19 00:14:11 +0100 |
commit | 0dbd55614bf8146187d459ea7faa110a4bae1f2f (patch) | |
tree | c2ff954388d70d1febdcb1f5810c6d93972859d3 /src/Bindings/CMakeLists.txt | |
parent | added zlib and UI (diff) | |
download | cuberite-0dbd55614bf8146187d459ea7faa110a4bae1f2f.tar cuberite-0dbd55614bf8146187d459ea7faa110a4bae1f2f.tar.gz cuberite-0dbd55614bf8146187d459ea7faa110a4bae1f2f.tar.bz2 cuberite-0dbd55614bf8146187d459ea7faa110a4bae1f2f.tar.lz cuberite-0dbd55614bf8146187d459ea7faa110a4bae1f2f.tar.xz cuberite-0dbd55614bf8146187d459ea7faa110a4bae1f2f.tar.zst cuberite-0dbd55614bf8146187d459ea7faa110a4bae1f2f.zip |
Diffstat (limited to 'src/Bindings/CMakeLists.txt')
-rw-r--r-- | src/Bindings/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt index cee61c13c..e503d9a84 100644 --- a/src/Bindings/CMakeLists.txt +++ b/src/Bindings/CMakeLists.txt @@ -4,13 +4,19 @@ project (MCServer) include_directories ("${PROJECT_SOURCE_DIR}/../") +if (WIN32) +add_executable(tolua++.exe IMPORTED) +else () +message(WARNING "cannot rebuild bindings when not on windows") +endif() + ADD_CUSTOM_COMMAND( #add any new generated bindings here OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Bindings.cpp ${CMAKE_CURRENT_BINARY_DIR}/Bindings.h #command execuded to regerate bindings COMMAND "./tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg #add any new generation dependencies here - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua++.exe ) -add_library(Bindings PluginManager LuaState WebPlugin) +add_library(Bindings PluginManager LuaState WebPlugin Bindings) |