summaryrefslogtreecommitdiffstats
path: root/lib/tolua++/CMakeLists.txt
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-19 20:38:00 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-19 20:38:00 +0100
commit6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26 (patch)
treedb269080d2bb4ffb20a42cc95490d9886fbbd560 /lib/tolua++/CMakeLists.txt
parentMerge branch 'master' into unreachable (diff)
downloadcuberite-6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26.tar
cuberite-6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26.tar.gz
cuberite-6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26.tar.bz2
cuberite-6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26.tar.lz
cuberite-6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26.tar.xz
cuberite-6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26.tar.zst
cuberite-6a3fe7adcc2a3855a574dbfc2bb79c86e7539f26.zip
Diffstat (limited to 'lib/tolua++/CMakeLists.txt')
-rw-r--r--lib/tolua++/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt
index 095fc152e..75a301a53 100644
--- a/lib/tolua++/CMakeLists.txt
+++ b/lib/tolua++/CMakeLists.txt
@@ -20,7 +20,11 @@ if(UNIX)
COMMAND xxd -i lua/function.lua | sed 's/unsigned char/static const unsigned char/g' >function_lua.h
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src/bin/
DEPENDS ${PROJECT_SOURCE_DIR}/src/bin/lua/function.lua)
- set_property(SOURCE src/bin/toluabind.c APPEND PROPERTY OBJECT_DEPENDS ${PROJECT_SOURCE_DIR}/src/bin/enumerate_lua.h ${PROJECT_SOURCE_DIR}/src/bin/basic_lua.h ${PROJECT_SOURCE_DIR}/src/bin/function_lua.h)
+ add_custom_command(OUTPUT ${PROJECT_SOURCE_DIR}/src/bin/declaration_lua.h
+ COMMAND xxd -i lua/declaration.lua | sed 's/unsigned char/static const unsigned char/g' >declaration_lua.h
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src/bin/
+ DEPENDS ${PROJECT_SOURCE_DIR}/src/bin/lua/declaration.lua)
+ set_property(SOURCE src/bin/toluabind.c APPEND PROPERTY OBJECT_DEPENDS ${PROJECT_SOURCE_DIR}/src/bin/enumerate_lua.h ${PROJECT_SOURCE_DIR}/src/bin/basic_lua.h ${PROJECT_SOURCE_DIR}/src/bin/function_lua.h ${PROJECT_SOURCE_DIR}/src/bin/declaration_lua.h)
message(hello)
endif()