summaryrefslogtreecommitdiffstats
path: root/src/Bindings/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-12-21 15:08:54 +0100
committerAlexander Harkness <bearbin@gmail.com>2013-12-21 15:08:54 +0100
commit3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4 (patch)
treef6675b692a8acac2a1de853a2df67f3ee8b6c0a1 /src/Bindings/CMakeLists.txt
parentYou could now only get fish from non-source blocks. Fixed it. (diff)
parentfixed lua dynamic library (diff)
downloadcuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar
cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.gz
cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.bz2
cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.lz
cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.xz
cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.zst
cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.zip
Diffstat (limited to 'src/Bindings/CMakeLists.txt')
-rw-r--r--src/Bindings/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Bindings/CMakeLists.txt b/src/Bindings/CMakeLists.txt
new file mode 100644
index 000000000..41c641d9d
--- /dev/null
+++ b/src/Bindings/CMakeLists.txt
@@ -0,0 +1,19 @@
+
+cmake_minimum_required (VERSION 2.6)
+project (MCServer)
+
+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 cpp files here
+add_library(Bindings PluginManager LuaState WebPlugin Bindings ManualBindings LuaWindow Plugin PluginLua WebPlugin)
+
+target_link_libraries(Bindings lua sqlite tolualib)