Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2008, 1:37:42 PM (17 years ago)
Author:
rgrieder
Message:
  • tolua_bind.cc and Script.cc depended on each other, but were not in the same library. gcc doesn't care anyway, vc++ didn't too because I linked statically. However: Circular dependencies are not very good. New approach: every lib has its own tolua_bind.cc file I've added this for orxonox and core.

fabian: Is it possible, that under certain conditions, you need the SET_TARGET_PROPERTIES?

On tardis, things work very well without it. But what about cmake under windows?

I'll readd it, if required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cmake/src/orxonox/CMakeLists.txt

    r1070 r1127  
    3030#  objects/weapon/BulletManager.cc
    3131#  objects/weapon/WeaponStation.cc
     32  tolua/tolua_bind.cc
    3233)
    3334
     35GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
     36ADD_CUSTOM_COMMAND(
     37  OUTPUT tolua/tolua_bind.cc
     38  COMMAND ${TOLUA_EXE} -n orxonox -o orxonox/tolua/tolua_bind.cc -H orxonox/tolua/tolua_bind.h orxonox/tolua/tolua.pkg
     39  DEPENDS tolua
     40  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src
     41)
     42       
    3443ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} )
    3544
Note: See TracChangeset for help on using the changeset viewer.