Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pch/src/tolua/CMakeLists.txt @ 3116

Last change on this file since 3116 was 3116, checked in by rgrieder, 15 years ago

Added new CMake functions: ORXONOX_ADD_LIBRARY and ORXONOX_ADD_EXECUTABLE.
They replace the current functions ADD_LIBRARY and ADD_EXECUTABLE to allow for clearer and easier declaration.
And it allows for GCC precompiled header file support in the first place ;)
More information can be found in TargetUtilities.cmake

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
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
22SET(TOLUA++_FILES
23  tolua_event.h
24  tolua++.h
25
26  tolua_event.c
27  tolua_is.c
28  tolua_map.c
29  tolua_push.c
30  tolua_to.c
31)
32GENERATE_SOURCE_GROUPS(${TOLUA++_FILES})
33
34# No warnings needed from third party libraries
35REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
36ADD_COMPILER_FLAGS("-w")
37
38ORXONOX_ADD_LIBRARY(tolua++_orxonox
39  ORXONOX_EXTERNAL
40  DEFINE_SYMBOL
41    "TOLUA_SHARED_BUILD"
42  VERSION
43    1.0.92
44  LINK_LIBRARIES
45    ${LUA_LIBRARIES}
46  SOURCE_FILES
47    ${TOLUA++_FILES}
48)
49
50
51################## Tolua++ generator ##################
52
53ORXONOX_ADD_EXECUTABLE(tolua++app_orxonox
54  ORXONOX_EXTERNAL
55  VERSION
56    1.0.92
57  LINK_LIBRARIES
58    ${LUA_LIBRARIES}
59  SOURCE_FILES
60    tolua.c
61)
62
63OPTION(TOLUA_PARSER_RELEASE "Disable all debug messages from tolua bind files for Release and MinSizeRel build types." FALSE)
64
65# Set some variables to the cache in order to use them in the TOLUA macro
66SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua" CACHE INTERNAL "")
67SET(TOLUA_PARSER_DEPENDENCIES
68  tolua++app_orxonox
69  ${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua
70  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua
71  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua
72  ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua
73  ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua
74  ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua
75  ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua
76  ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua
77  ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua
78  ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua
79  ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua
80  ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua
81  ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua
82  ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua
83  ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua
84  ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua
85  ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua
86  ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua
87  ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua
88  ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua
89  ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua
90  ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua
91
92  CACHE INTERNAL ""
93)
Note: See TracBrowser for help on using the repository browser.