summaryrefslogtreecommitdiffstats
path: root/src/Bindings/CMakeLists.txt
blob: f2c2fa3abbf406e3edb2e99020d4600ff20463db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

cmake_minimum_required (VERSION 2.6)
project (MCServer)

include_directories ("${PROJECT_SOURCE_DIR}/../")

 ADD_CUSTOM_COMMAND(
   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/foo.c
   COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/bar.c ${CMAKE_CURRENT_BINARY_DIR}/foo.c
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bar.c
   )
execute_process(COMMAND "./tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg)

add_library(Bindings PluginManager LuaState WebPlugin)