PROJECT(Orxonox) ADD_SUBDIRECTORY(core) ADD_SUBDIRECTORY(hud) IF(NOT WIN32) ADD_SUBDIRECTORY(objects) ADD_SUBDIRECTORY(tools) ENDIF(NOT WIN32) ADD_SUBDIRECTORY(particle) INCLUDE_DIRECTORIES(tools) SET( ORXONOX_SRC_FILES Orxonox.cc SpaceshipSteering.cc Main.cc GraphicsEngine.cc ) IF(WIN32) SET( OBJECTS_SRC_FILES objects/WorldEntity.cc objects/test1.cc objects/test2.cc objects/test3.cc objects/Ambient.cc objects/Skybox.cc objects/Camera.cc # objects/SpaceshipSteeringObject.cc objects/Fighter.cc objects/Model.cc objects/SpaceShip.cc objects/NPC.cc objects/Projectile.cc objects/weapon_system/AmmunitionDump.cc objects/weapon_system/BarrelGun.cc objects/weapon_system/BaseWeapon.cc objects/weapon_system/Bullet.cc objects/weapon_system/BulletManager.cc objects/weapon_system/WeaponStation.cc objects/Explosion.cc tools/BillboardSet.cc tools/Light.cc tools/Mesh.cc ) ELSE(WIN32) SET(LINK_OBJECTS_LIBRARY objects) SET(LINK_TOOLS_LIBRARY tools) ENDIF(WIN32) IF(WIN32) # ADD_LIBRARY(orxonox ${ORXONOX_SRC_FILES}) ELSE(WIN32) ADD_LIBRARY(orxonox SHARED ${ORXONOX_SRC_FILES}) ENDIF(WIN32) ADD_EXECUTABLE(../../bin/main ${ORXONOX_SRC_FILES} ${OBJECTS_SRC_FILES}) SET_TARGET_PROPERTIES(../../bin/main PROPERTIES LINK_FLAGS "--no-undefined" ) TARGET_LINK_LIBRARIES( ../../bin/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES} loader audio network core hud ${LINK_OBJECTS_LIBRARY} ${LINK_TOOLS_LIBRARY} util particle )