Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/tolua/CMakeLists.txt @ 2641

Last change on this file since 2641 was 2634, checked in by rgrieder, 16 years ago

Fixed INSTALL target for Windows. The problem was that RUNTIME DESTINATION was missing for the libraries because a dll is considered a runtime target.

  • Property svn:eol-style set to native
File size: 2.9 KB
RevLine 
[2626]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
[2621]20################### Tolua++ library ###################
[2588]21
[2621]22SET(TOLUA++_FILES
23  tolua_event.h
24  tolua++.h
25
[1505]26  tolua_event.c
27  tolua_is.c
28  tolua_map.c
29  tolua_push.c
30  tolua_to.c
31)
[2621]32GENERATE_SOURCE_GROUPS(${TOLUA++_FILES})
[1505]33
[2621]34ADD_COMPILER_FLAGS("-w44996" MSVC)
35
36ADD_LIBRARY(tolua++_orxonox SHARED ${TOLUA++_FILES})
37SET_TARGET_PROPERTIES(tolua++_orxonox PROPERTIES DEFINE_SYMBOL "TOLUA_SHARED_BUILD")
38TARGET_LINK_LIBRARIES(tolua++_orxonox ${LUA_LIBRARIES})
39
[2634]40ORXONOX_INSTALL(tolua++_orxonox)
[1505]41
42
[2621]43################## Tolua++ generator ##################
[1755]44
[2621]45ADD_EXECUTABLE(tolua++app_orxonox tolua.c)
46TARGET_LINK_LIBRARIES(tolua++app_orxonox tolua++_orxonox ${LUA_LIBRARIES})
[2510]47
[2625]48OPTION(TOLUA_PARSER_RELEASE "Disable all debug messages from tolua bind files for Release and MinSizeRel build types." FALSE)
49
[2583]50# Set some variables to the cache in order to use them in the TOLUA macro
[2621]51SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua" CACHE INTERNAL "")
[2509]52SET(TOLUA_PARSER_DEPENDENCIES
[2621]53  tolua++app_orxonox
54  ${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua
[2509]55  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua
56  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat.lua
57  ${CMAKE_CURRENT_SOURCE_DIR}/lua/basic.lua
58  ${CMAKE_CURRENT_SOURCE_DIR}/lua/feature.lua
59  ${CMAKE_CURRENT_SOURCE_DIR}/lua/verbatim.lua
60  ${CMAKE_CURRENT_SOURCE_DIR}/lua/code.lua
61  ${CMAKE_CURRENT_SOURCE_DIR}/lua/typedef.lua
62  ${CMAKE_CURRENT_SOURCE_DIR}/lua/container.lua
63  ${CMAKE_CURRENT_SOURCE_DIR}/lua/package.lua
64  ${CMAKE_CURRENT_SOURCE_DIR}/lua/module.lua
65  ${CMAKE_CURRENT_SOURCE_DIR}/lua/namespace.lua
66  ${CMAKE_CURRENT_SOURCE_DIR}/lua/define.lua
67  ${CMAKE_CURRENT_SOURCE_DIR}/lua/enumerate.lua
68  ${CMAKE_CURRENT_SOURCE_DIR}/lua/declaration.lua
69  ${CMAKE_CURRENT_SOURCE_DIR}/lua/variable.lua
70  ${CMAKE_CURRENT_SOURCE_DIR}/lua/array.lua
71  ${CMAKE_CURRENT_SOURCE_DIR}/lua/function.lua
72  ${CMAKE_CURRENT_SOURCE_DIR}/lua/operator.lua
73  ${CMAKE_CURRENT_SOURCE_DIR}/lua/class.lua
74  ${CMAKE_CURRENT_SOURCE_DIR}/lua/clean.lua
75  ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua
[1755]76
[2599]77  CACHE INTERNAL ""
[1755]78)
Note: See TracBrowser for help on using the repository browser.