diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-04-02 15:04:17 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-04-02 15:04:17 +0200 |
commit | 298c0b409ac01f17968ed3ff5dd6e2e901627e04 (patch) | |
tree | 0d9eb2c8c7e8b02a0028b543f98876b52061da87 /lib/tolua++/CMakeLists.txt | |
parent | Added override specifier to functions declared in cWorld (diff) | |
download | cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.gz cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.bz2 cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.lz cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.xz cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.tar.zst cuberite-298c0b409ac01f17968ed3ff5dd6e2e901627e04.zip |
Diffstat (limited to 'lib/tolua++/CMakeLists.txt')
-rw-r--r-- | lib/tolua++/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt index 75a301a53..4df698e89 100644 --- a/lib/tolua++/CMakeLists.txt +++ b/lib/tolua++/CMakeLists.txt @@ -24,8 +24,11 @@ if(UNIX) 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) + add_custom_command(OUTPUT ${PROJECT_SOURCE_DIR}/src/bin/container_lua.h + COMMAND xxd -i lua/container.lua | sed 's/unsigned char/static const unsigned char/g' >container_lua.h + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src/bin/ + DEPENDS ${PROJECT_SOURCE_DIR}/src/bin/lua/container.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 ${PROJECT_SOURCE_DIR}/src/bin/container_lua.h) endif() |