# # ORXONOX - the hottest 3D action shooter ever to exist # > www.orxonox.net < # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # ################### Tolua++ library ################### SET_SOURCE_FILES(TOLUA++_FILES tolua_event.h tolua++.h COMPILATION_BEGIN ToluaCompilation.c tolua_event.c tolua_is.c tolua_map.c tolua_push.c tolua_to.c COMPILATION_END ) ORXONOX_ADD_LIBRARY(tolua++_orxonox ORXONOX_EXTERNAL DEFINE_SYMBOL shared "TOLUA_SHARED_BUILD" static "TOLUA_STATIC_BUILD" VERSION 1.0.92 LINK_LIBRARIES ${LUA_LIBRARIES} SOURCE_FILES ${TOLUA++_FILES} ) ################## Tolua++ generator ################## ORXONOX_ADD_EXECUTABLE(tolua++app_orxonox ORXONOX_EXTERNAL VERSION 1.0.92 NO_INSTALL LINK_LIBRARIES ${LUA_LIBRARIES} SOURCE_FILES tolua.c ) # Set some variables to the cache in order to use them in the TOLUA macro SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua" CACHE INTERNAL "") SET(TOLUA_PARSER_DEPENDENCIES tolua++app_orxonox ${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua CACHE INTERNAL "" )