diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-15 14:45:26 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-15 14:45:26 +0100 |
commit | 2e9fe777e425e65d733110247e73c1d9fb25ab1c (patch) | |
tree | 595c98abe3ecc64b56d03fd8ca141c7c68d3f47e /lib/tolua++/CMakeLists.txt | |
parent | Fixed a couple of unneeded returns in ProtoProxy (diff) | |
download | cuberite-2e9fe777e425e65d733110247e73c1d9fb25ab1c.tar cuberite-2e9fe777e425e65d733110247e73c1d9fb25ab1c.tar.gz cuberite-2e9fe777e425e65d733110247e73c1d9fb25ab1c.tar.bz2 cuberite-2e9fe777e425e65d733110247e73c1d9fb25ab1c.tar.lz cuberite-2e9fe777e425e65d733110247e73c1d9fb25ab1c.tar.xz cuberite-2e9fe777e425e65d733110247e73c1d9fb25ab1c.tar.zst cuberite-2e9fe777e425e65d733110247e73c1d9fb25ab1c.zip |
Diffstat (limited to 'lib/tolua++/CMakeLists.txt')
-rw-r--r-- | lib/tolua++/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt index 5ec8ee822..9c8943aac 100644 --- a/lib/tolua++/CMakeLists.txt +++ b/lib/tolua++/CMakeLists.txt @@ -5,6 +5,25 @@ project (tolua++) include_directories ("${PROJECT_SOURCE_DIR}/../../src/") include_directories ("${PROJECT_SOURCE_DIR}/include/") include_directories ("${PROJECT_SOURCE_DIR}/../") +include_directories ("${PROJECT_SOURCE_DIR}") + +if(UNIX) + add_custom_command(OUTPUT ${PROJECT_SOURCE_DIR}/src/bin/basic_lua.h + COMMAND xxd -i lua/basic.lua >basic_lua.h + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src/bin/ + DEPENDS ${PROJECT_SOURCE_DIR}/src/bin/lua/basic.lua) + add_custom_command(OUTPUT ${PROJECT_SOURCE_DIR}/src/bin/enumerate_lua.h + COMMAND xxd -i lua/enumerate.lua >enumerate_lua.h + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src/bin/ + DEPENDS ${PROJECT_SOURCE_DIR}/src/bin/lua/enumerate.lua) + add_custom_command(OUTPUT ${PROJECT_SOURCE_DIR}/src/bin/function_lua.h + COMMAND xxd -i lua/function.lua >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) + message(hello) +endif() + file(GLOB LIB_SOURCE "src/lib/*.c" @@ -14,6 +33,8 @@ file(GLOB BIN_SOURCE "src/bin/*.c" ) + + add_executable(tolua ${BIN_SOURCE}) add_library(tolualib ${LIB_SOURCE}) |