[2710] | 1 | # |
---|
| 2 | # ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | # > www.orxonox.net < |
---|
| 4 | # |
---|
| 5 | # This program is free software; you can redistribute it and/or |
---|
| 6 | # modify it under the terms of the GNU General Public License |
---|
| 7 | # as published by the Free Software Foundation; either version 2 |
---|
| 8 | # of the License, or (at your option) any later version. |
---|
| 9 | # |
---|
| 10 | # This program is distributed in the hope that it will be useful, |
---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 13 | # GNU General Public License for more details. |
---|
| 14 | # |
---|
| 15 | # You should have received a copy of the GNU General Public License along |
---|
| 16 | # with this program; if not, write to the Free Software Foundation, |
---|
| 17 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 18 | # |
---|
| 19 | |
---|
| 20 | ################### Tolua++ library ################### |
---|
| 21 | |
---|
[7152] | 22 | SET_SOURCE_FILES(TOLUA_FILES |
---|
[2710] | 23 | tolua_event.h |
---|
| 24 | tolua++.h |
---|
[5929] | 25 | COMPILATION_BEGIN ToluaCompilation.c |
---|
[1505] | 26 | tolua_event.c |
---|
| 27 | tolua_is.c |
---|
| 28 | tolua_map.c |
---|
| 29 | tolua_push.c |
---|
| 30 | tolua_to.c |
---|
[5929] | 31 | COMPILATION_END |
---|
[1505] | 32 | ) |
---|
| 33 | |
---|
[7152] | 34 | ORXONOX_ADD_LIBRARY(tolua_orxonox |
---|
[3196] | 35 | ORXONOX_EXTERNAL |
---|
| 36 | DEFINE_SYMBOL |
---|
[7143] | 37 | "TOLUA_SHARED_BUILD" |
---|
[3196] | 38 | VERSION |
---|
| 39 | 1.0.92 |
---|
| 40 | LINK_LIBRARIES |
---|
| 41 | ${LUA_LIBRARIES} |
---|
| 42 | SOURCE_FILES |
---|
[7152] | 43 | ${TOLUA_FILES} |
---|
[3196] | 44 | ) |
---|
[1505] | 45 | |
---|
[1755] | 46 | |
---|
[2710] | 47 | ################## Tolua++ generator ################## |
---|
[1755] | 48 | |
---|
[7152] | 49 | ORXONOX_ADD_EXECUTABLE(toluaapp_orxonox |
---|
[3196] | 50 | ORXONOX_EXTERNAL |
---|
| 51 | VERSION |
---|
| 52 | 1.0.92 |
---|
[3368] | 53 | NO_INSTALL |
---|
[3196] | 54 | LINK_LIBRARIES |
---|
| 55 | ${LUA_LIBRARIES} |
---|
| 56 | SOURCE_FILES |
---|
| 57 | tolua.c |
---|
| 58 | ) |
---|
[1755] | 59 | |
---|
[2710] | 60 | # Set some variables to the cache in order to use them in the TOLUA macro |
---|
| 61 | SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua" CACHE INTERNAL "") |
---|
| 62 | SET(TOLUA_PARSER_DEPENDENCIES |
---|
[7152] | 63 | toluaapp_orxonox |
---|
[2710] | 64 | ${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua |
---|
| 65 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua |
---|
| 66 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua |
---|
| 67 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua |
---|
| 68 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua |
---|
| 69 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua |
---|
| 70 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua |
---|
| 71 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua |
---|
| 72 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua |
---|
| 73 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua |
---|
| 74 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua |
---|
| 75 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua |
---|
| 76 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua |
---|
| 77 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua |
---|
| 78 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua |
---|
| 79 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua |
---|
| 80 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua |
---|
| 81 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua |
---|
| 82 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua |
---|
| 83 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua |
---|
| 84 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua |
---|
| 85 | ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua |
---|
[1755] | 86 | |
---|
[2710] | 87 | CACHE INTERNAL "" |
---|
[1505] | 88 | ) |
---|