Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2008, 1:37:42 PM (16 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/core/CMakeLists.txt

    r1124 r1127  
    2626  Tickable.cc
    2727  Script.cc
     28  tolua/tolua_bind.cc
     29)
     30
     31GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION)
     32ADD_CUSTOM_COMMAND(
     33  OUTPUT tolua/tolua_bind.cc
     34  COMMAND ${TOLUA_EXE} -n core -o core/tolua/tolua_bind.cc -H core/tolua/tolua_bind.h core/tolua/tolua.pkg
     35  DEPENDS tolua
     36  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src
    2837)
    2938
     
    3140
    3241TARGET_LINK_LIBRARIES(core
    33   util
    34   tolualib
    3542  ${Lua_LIBRARIES}
    3643  ${OIS_LIBRARIES}
     44  ${OGRE_LIBRARIES}
     45  util
    3746)
Note: See TracChangeset for help on using the changeset viewer.