Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1153 for code/trunk/src


Ignore:
Timestamp:
Apr 24, 2008, 10:35:53 AM (17 years ago)
Author:
rgrieder
Message:
  • merged cmake branch back to trunk (the last one, hopefully ;))
  • added Oli's lua library name (liblua.so)
Location:
code/trunk/src
Files:
1 deleted
5 edited
19 copied

Legend:

Unmodified
Added
Removed
  • code/trunk/src/CMakeLists.txt

    r1115 r1153  
    11INCLUDE_DIRECTORIES(.)
    22INCLUDE_DIRECTORIES(orxonox)
    3 INCLUDE_DIRECTORIES(tolua)
     3INCLUDE_DIRECTORIES(util/tolua)
    44
    5 ADD_SUBDIRECTORY(tolua)
    65ADD_SUBDIRECTORY(util)
    76ADD_SUBDIRECTORY(core)
  • code/trunk/src/core/CMakeLists.txt

    r1126 r1153  
    2626  Tickable.cc
    2727  Script.cc
     28  tolua/tolua_bind.cc
     29#tolua/tolua_bind.h
     30)
     31
     32#SET_SOURCE_FILES_PROPERTIES(tolua/tolua_bind.h
     33#  PROPERTIES
     34#  OBJECT_DEPENDS tolua/tolua_bind.h
     35#  OBJECT_DEPENDS tolua/tolua_bind.cc
     36#  GENERATED true
     37#  HEADER_FILE_ONLY true
     38#)
     39
     40GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
     41ADD_CUSTOM_COMMAND(
     42  OUTPUT tolua/tolua_bind.cc tolua/tolua_bind.h
     43  COMMAND ${TOLUA_EXE} -n core -o ../../src/core/tolua/tolua_bind.cc -H ../../src/core/tolua/tolua_bind.h ../../src/core/tolua/tolua.pkg
     44  DEPENDS tolua
     45  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
    2846)
    2947
     
    3149
    3250TARGET_LINK_LIBRARIES(core
    33   util
    34   tolualib
    3551  ${Lua_LIBRARIES}
    3652  ${OIS_LIBRARIES}
     53  ${OGRE_LIBRARIES}
     54  util
    3755)
  • code/trunk/src/core/Script.cc

    r1115 r1153  
    3939}
    4040
    41 #include "tolua/tolua++.h"
     41#include "tolua++.h"
    4242#include "tolua/tolua_bind.h"
    4343
     
    6060    luaopen_debug(luaState_);
    6161#endif
    62     tolua_orxonox_open(luaState_);
     62    tolua_core_open(luaState_);
    6363    output_ = "";
    6464  }
  • code/trunk/src/orxonox/CMakeLists.txt

    r1070 r1153  
    3030#  objects/weapon/BulletManager.cc
    3131#  objects/weapon/WeaponStation.cc
     32  tolua/tolua_bind.cc
     33#  tolua/tolua_bind.h
    3234)
    3335
     36#SET_SOURCE_FILES_PROPERTIES(tolua/tolua_bind.h
     37#  PROPERTIES
     38#  OBJECT_DEPENDS tolua/tolua_bind.h
     39#  OBJECT_DEPENDS tolua/tolua_bind.cc
     40#  GENERATED true
     41#  HEADER_FILE_ONLY true
     42#)
     43
     44GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
     45ADD_CUSTOM_COMMAND(
     46  OUTPUT tolua/tolua_bind.cc tolua/tolua_bind.h
     47  COMMAND ${TOLUA_EXE} -n orxonox -o ../../src/orxonox/tolua/tolua_bind.cc -H ../../src/orxonox/tolua/tolua_bind.h ../../src/orxonox/tolua/tolua.pkg
     48  DEPENDS tolua
     49  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
     50)
     51       
    3452ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} )
    3553
  • code/trunk/src/util/CMakeLists.txt

    r1120 r1153  
    1 AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES)
    2 
    31SET(UTIL_SRC_FILES
    42  ArgReader.cc
     3  Clipboard.cc
     4  ExprParser.cc
    55  Math.cc
    6   String.cc
    7   Clipboard.cc
    8   SubString.cc
    9   ExprParser.cc
    106  MultiTypePrimitive.cc
    117  MultiTypeString.cc
    128  MultiTypeMath.cc
    13   ${TINYXML_SRC_FILES}
     9  String.cc
     10  SubString.cc
     11
     12  tinyxml/ticpp.cc
     13  tinyxml/tinystr.cc
     14  tinyxml/tinyxml.cc
     15  tinyxml/tinyxmlerror.cc
     16  tinyxml/tinyxmlparser.cc
     17
     18  tolua/tolua_event.c
     19  tolua/tolua_is.c
     20  tolua/tolua_map.c
     21  tolua/tolua_push.c
     22  tolua/tolua_to.c
    1423)
    1524
     
    2231TARGET_LINK_LIBRARIES(util
    2332  ${OGRE_LIBRARIES}
     33  ${Lua_LIBRARIES}
    2434)
    2535
     36ADD_SUBDIRECTORY(tolua)
     37
Note: See TracChangeset for help on using the changeset viewer.