Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1153 for code/trunk/src/core


Ignore:
Timestamp:
Apr 24, 2008, 10:35:53 AM (16 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/core
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • 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  }
Note: See TracChangeset for help on using the changeset viewer.