diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2014-01-02 18:49:55 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2014-01-02 18:49:55 +0100 |
commit | ea6f94f6cb703f29511a844fc9e14567986e73ee (patch) | |
tree | 6b9df61798a94c8e9977deb44de148b76a55d331 /src/Bindings/CMakeLists.txt | |
parent | added documentation (diff) | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | cuberite-ea6f94f6cb703f29511a844fc9e14567986e73ee.tar cuberite-ea6f94f6cb703f29511a844fc9e14567986e73ee.tar.gz cuberite-ea6f94f6cb703f29511a844fc9e14567986e73ee.tar.bz2 cuberite-ea6f94f6cb703f29511a844fc9e14567986e73ee.tar.lz cuberite-ea6f94f6cb703f29511a844fc9e14567986e73ee.tar.xz cuberite-ea6f94f6cb703f29511a844fc9e14567986e73ee.tar.zst cuberite-ea6f94f6cb703f29511a844fc9e14567986e73ee.zip |
Diffstat (limited to 'src/Bindings/CMakeLists.txt')
-rw-r--r-- | src/Bindings/CMakeLists.txt | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt index 41c641d9d..50b81e42a 100644 --- a/src/Bindings/CMakeLists.txt +++ b/src/Bindings/CMakeLists.txt @@ -2,17 +2,22 @@ cmake_minimum_required (VERSION 2.6) project (MCServer) +# NOTE: This CMake file is processed only for Unix builds; Windows(MSVC) builds handle all the subfolders in /src in a single file, /src/CMakeLists.txt + include_directories ("${PROJECT_SOURCE_DIR}/../") - 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 -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 tolua - ) - +ADD_CUSTOM_COMMAND( + # add any new generated bindings here + OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/Bindings.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Bindings.h + + # command execuded to regerate bindings + COMMAND tolua -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + + # add any new generation dependencies here + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua +) + #add cpp files here add_library(Bindings PluginManager LuaState WebPlugin Bindings ManualBindings LuaWindow Plugin PluginLua WebPlugin) |