Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 21, 2008, 11:06:12 PM (16 years ago)
Author:
rgrieder
Message:

It is no more necessary to include UseTolua.cmake just before the invocation of the TOLUA macro.
The include has been moved to src/CMakeLists.txt

Location:
code/branches/buildsystem2/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/CMakeLists.txt

    r2510 r2519  
    5353ENDIF (WIN32)
    5454
    55 # Include macro to easily add source files in subdirectories
     55# Include macros
    5656INCLUDE(AddSourceFiles)
     57INCLUDE(UseTolua)
    5758
    5859# Our own libraries
  • code/branches/buildsystem2/src/core/CMakeLists.txt

    r2518 r2519  
    4747WRITE_SOURCE_FILES(CORE_SRC_FILES)
    4848
    49 INCLUDE(UseTolua)
    5049TOLUA(Core CORE_SRC_FILES INPUTFILES LuaBind.h CommandExecutor.h)
    5150
  • code/branches/buildsystem2/src/orxonox/CMakeLists.txt

    r2518 r2519  
    1616WRITE_SOURCE_FILES(ORXONOX_SRC_FILES)
    1717
    18 INCLUDE(UseTolua)
    1918TOLUA(Orxonox ORXONOX_SRC_FILES INPUTFILES gui/GUIManager.h)
    2019
  • code/branches/buildsystem2/src/tolua/CMakeLists.txt

    r2510 r2519  
    66  tolua_to.c
    77)
    8 
    9 TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARIES})
    108
    119#INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib)
     
    2725ENDIF("${LUA_VERSION}" MATCHES "^5.0")
    2826
     27# Set some variables to the parent scope in order to use them in the TOLUA macro
     28GET_TARGET_PROPERTY(_temp_location toluaexe_orxonox LOCATION)
     29SET(TOLUA_PARSER_EXECUTABLE ${_temp_location} PARENT_SCOPE)
    2930SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" PARENT_SCOPE)
    3031SET(TOLUA_PARSER_DEPENDENCIES
     32  toluaexe_orxonox
    3133  ${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}
    3234  ${CMAKE_CURRENT_SOURCE_DIR}/lua/compat-5.1.lua
Note: See TracChangeset for help on using the changeset viewer.