Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1076 for code/trunk/src


Ignore:
Timestamp:
Apr 16, 2008, 10:05:37 AM (17 years ago)
Author:
rgrieder
Message:

two hours of Fuk is very 'enlighting', the whole thing works now.\ncmake. will now build lua, then compile with tolua and finally create the Makefiles for orxonox.\n

Location:
code/trunk/src
Files:
3 added
3 deleted
5 edited

Legend:

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

    r1055 r1076  
    11INCLUDE_DIRECTORIES(.)
    22INCLUDE_DIRECTORIES(orxonox)
     3INCLUDE_DIRECTORIES(util/tolua)
    34
    45ADD_SUBDIRECTORY(util)
  • code/trunk/src/core/CMakeLists.txt

    r1070 r1076  
     1#get the created files
     2AUX_SOURCE_DIRECTORY(tolua TOLUA_BIND_FILES)
     3
     4MESSAGE(STATUS "tolua sources: ${TOLUA_BIND_FILES}")
     5
    16SET( CORE_SRC_FILES
    27  OrxonoxClass.cc
     
    2631  Tickable.cc
    2732  Script.cc
    28   ToLuaBind.cc
     33  ${TOLUA_BIND_FILES}
    2934)
    3035
     
    3439  util
    3540  ${Lua_LIBRARIES}
     41  ${Lua_LIBRARY}
    3642  ${OIS_LIBRARIES}
    3743)
  • code/trunk/src/core/Script.cc

    r1056 r1076  
    3939}
    4040
    41 #include "util/tolua/tolua++.h"
    42 #include "ToLuaBind.h"
     41#include "tolua++.h"
     42#include "tolua/tolua_bind.h"
    4343
    4444namespace orxonox
  • code/trunk/src/util/CMakeLists.txt

    r1073 r1076  
    11AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES)
     2AUX_SOURCE_DIRECTORY(tolua   TOLUA_SRC_FILES)
    23
    34SET (UTIL_SRC_FILES
     
    1112  MultiTypeMath.cc
    1213  ${TINYXML_SRC_FILES}
     14  ${TOLUA_SRC_FILES}
    1315)
    1416
     
    2123TARGET_LINK_LIBRARIES( util
    2224  ${OGRE_LIBRARIES}
    23 )
     25  ${Lua_LIBRARIES}
     26  ${Lua_LIBRARY}
     27)
     28
  • code/trunk/src/util/tolua/CMakeLists.txt

    r1075 r1076  
    22
    33#This sets where to look for modules (e.g. "Find*.cmake" files)
    4 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
     4SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/)
    55
    66#Check whether we are on a tardis box
     
    1717
    1818#set binary output directories
    19 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    20 SET(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/bin/lib)
     19SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../../../bin)
     20SET(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/../../../bin)
    2121
    2222# global compiler/linker flags. force -O2!
     
    3939#Set the search paths for the linking
    4040LINK_DIRECTORIES(
    41   ${Lua_LIBRARIES}
    42   m
    4341)
    4442
     
    6563TARGET_LINK_LIBRARIES( tolua
    6664  ${Lua_LIBRARIES}
     65  ${Lua_LIBRARY}
     66  m
    6767)
Note: See TracChangeset for help on using the changeset viewer.