Last change
on this file since 1127 was
1127,
checked in by rgrieder, 16 years ago
|
- 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 size:
1.1 KB
|
Rev | Line | |
---|
[1127] | 1 | SET( ORXONOX_SRC_FILES |
---|
| 2 | GraphicsEngine.cc |
---|
| 3 | Main.cc |
---|
| 4 | Orxonox.cc |
---|
| 5 | # SpaceshipSteering.cc |
---|
| 6 | hud/HUD.cc |
---|
| 7 | particle/ParticleInterface.cc |
---|
| 8 | tools/BillboardSet.cc |
---|
| 9 | tools/Light.cc |
---|
| 10 | tools/Mesh.cc |
---|
| 11 | tools/Timer.cc |
---|
| 12 | objects/Ambient.cc |
---|
| 13 | objects/Camera.cc |
---|
| 14 | objects/Explosion.cc |
---|
| 15 | # objects/Fighter.cc |
---|
| 16 | objects/Model.cc |
---|
| 17 | objects/NPC.cc |
---|
| 18 | objects/Projectile.cc |
---|
| 19 | objects/Skybox.cc |
---|
| 20 | objects/SpaceShip.cc |
---|
| 21 | # objects/SpaceshipSteeringObject.cc |
---|
| 22 | # objects/test1.cc |
---|
| 23 | # objects/test2.cc |
---|
| 24 | # objects/test3.cc |
---|
| 25 | objects/WorldEntity.cc |
---|
| 26 | # objects/weapon/AmmunitionDump.cc |
---|
| 27 | # objects/weapon/BarrelGun.cc |
---|
| 28 | # objects/weapon/BaseWeapon.cc |
---|
| 29 | # objects/weapon/Bullet.cc |
---|
| 30 | # objects/weapon/BulletManager.cc |
---|
| 31 | # objects/weapon/WeaponStation.cc |
---|
| 32 | tolua/tolua_bind.cc |
---|
| 33 | ) |
---|
| 34 | |
---|
| 35 | GET_TARGET_PROPERTY(TOLUA_EXE tolua LOCATION) |
---|
| 36 | ADD_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 | |
---|
| 43 | ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} ) |
---|
| 44 | |
---|
| 45 | TARGET_LINK_LIBRARIES( orxonox |
---|
| 46 | ${OGRE_LIBRARIES} |
---|
| 47 | ${Lua_LIBRARIES} |
---|
| 48 | util |
---|
| 49 | core |
---|
| 50 | audio |
---|
| 51 | network |
---|
| 52 | ) |
---|
| 53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.