Changeset 768 for code/branches/FICN/src
- Timestamp:
- Dec 31, 2007, 4:25:06 PM (17 years ago)
- Location:
- code/branches/FICN/src
- Files:
-
- 5 deleted
- 17 edited
- 13 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/CMakeLists.txt
r742 r768 1 PROJECT(Orxonox)2 3 1 INCLUDE_DIRECTORIES(.) 4 2 3 ADD_SUBDIRECTORY(util) 4 ADD_SUBDIRECTORY(orxonox/core) 5 ADD_SUBDIRECTORY(audio) 6 ADD_SUBDIRECTORY(network) 5 7 ADD_SUBDIRECTORY(loader) 6 ADD_SUBDIRECTORY(network)7 8 ADD_SUBDIRECTORY(orxonox) 8 ADD_SUBDIRECTORY(audio)9 ADD_SUBDIRECTORY(util) -
code/branches/FICN/src/audio/CMakeLists.txt
r728 r768 1 PROJECT(Orxonox) 2 3 SET(SRC_FILES 1 SET ( AUDIO_SRC_FILES 4 2 AudioIncludes.h 5 3 AudioManager.cc … … 9 7 ) 10 8 9 IF (WIN32) 10 ADD_LIBRARY( audio ${AUDIO_SRC_FILES } ) 11 ELSE (WIN32) 12 ADD_LIBRARY( audio SHARED ${AUDIO_SRC_FILES}) 13 ENDIF (WIN32) 11 14 12 INCLUDE_DIRECTORIES(..)15 SET_TARGET_PROPERTIES( audio PROPERTIES LINK_FLAGS "--no-undefined" ) 13 16 14 IF(WIN32) 15 ADD_LIBRARY(audio ${SRC_FILES}) 16 ELSE(WIN32) 17 ADD_LIBRARY(audio SHARED ${SRC_FILES}) 18 ENDIF(WIN32) 19 20 TARGET_LINK_LIBRARIES( 21 audio 17 TARGET_LINK_LIBRARIES( audio 22 18 ${OPENAL_LIBRARY} 23 19 ${ALUT_LIBRARY} 24 20 ${VORBISFILE_LIBRARY} 25 ${VORBISENC_LIBRARY}26 21 ${VORBIS_LIBRARY} 27 22 ${OGG_LIBRARY} 23 core 28 24 ) 29 25 -
code/branches/FICN/src/loader/CMakeLists.txt
r744 r768 1 PROJECT(Orxonox)2 3 # TODO find a cleaner way to include xmlParser4 1 SET( LOADER_SRC_FILES 5 2 LevelLoader.cc 6 3 ) 7 4 8 IF(WIN32) 9 ADD_LIBRARY(loader ${LOADER_SRC_FILES}) 10 ELSE(WIN32) 11 ADD_LIBRARY(loader SHARED ${LOADER_SRC_FILES}) 12 ENDIF(WIN32) 5 IF (WIN32) 6 ADD_LIBRARY( loader ${LOADER_SRC_FILES } ) 7 ELSE (WIN32) 8 ADD_LIBRARY( loader SHARED ${LOADER_SRC_FILES}) 9 ENDIF (WIN32) 10 11 SET_TARGET_PROPERTIES( loader PROPERTIES LINK_FLAGS "--no-undefined" ) 13 12 14 13 TARGET_LINK_LIBRARIES( loader -
code/branches/FICN/src/network/CMakeLists.txt
r732 r768 1 PROJECT(Orxonox)2 3 1 SET( NETWORK_SRC_FILES 4 2 Client.cc … … 17 15 18 16 IF(WIN32) 19 ADD_LIBRARY( network ${NETWORK_SRC_FILES})17 ADD_LIBRARY( network ${NETWORK_SRC_FILES}) 20 18 ELSE(WIN32) 21 ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES})19 ADD_LIBRARY( network SHARED ${NETWORK_SRC_FILES}) 22 20 ENDIF(WIN32) 23 21 24 TARGET_LINK_LIBRARIES(network ${ZLIB_LIBRARY} ${ENet_LIBRARY} ${Boost_thread_LIBRARIES}) 22 SET_TARGET_PROPERTIES( network PROPERTIES LINK_FLAGS "--no-undefined" ) 23 24 TARGET_LINK_LIBRARIES( network 25 ${ZLIB_LIBRARY} 26 ${ENet_LIBRARY} 27 ${Boost_thread_LIBRARIES} 28 core 29 ) 25 30 26 31 # build those parts only on request. -
code/branches/FICN/src/orxonox/CMakeLists.txt
r752 r768 1 PROJECT(Orxonox)2 3 ADD_SUBDIRECTORY(core)4 ADD_SUBDIRECTORY(hud)5 IF(NOT WIN32)6 ADD_SUBDIRECTORY(objects)7 ADD_SUBDIRECTORY(tools)8 ENDIF(NOT WIN32)9 ADD_SUBDIRECTORY(particle)10 11 INCLUDE_DIRECTORIES(tools)12 13 1 SET( ORXONOX_SRC_FILES 2 GraphicsEngine.cc 3 Main.cc 14 4 Orxonox.cc 15 5 SpaceshipSteering.cc 16 Main.cc 17 GraphicsEngine.cc 6 hud/HUD.cc 7 particle/ParticleInterface.cc 8 tools/BillboardSet.cc 9 tools/Light.cc 10 tools/Mesh.cc 11 objects/Ambient.cc 12 objects/Camera.cc 13 objects/Explosion.cc 14 objects/Fighter.cc 15 objects/Model.cc 16 objects/NPC.cc 17 objects/Projectile.cc 18 objects/Skybox.cc 19 objects/SpaceShip.cc 20 # objects/SpaceshipSteeringObject.cc 21 # objects/test1.cc 22 # objects/test2.cc 23 # objects/test3.cc 24 objects/WorldEntity.cc 25 objects/weapon/AmmunitionDump.cc 26 objects/weapon/BarrelGun.cc 27 objects/weapon/BaseWeapon.cc 28 objects/weapon/Bullet.cc 29 objects/weapon/BulletManager.cc 30 objects/weapon/WeaponStation.cc 18 31 ) 19 32 20 IF(WIN32) 21 SET( OBJECTS_SRC_FILES 22 objects/WorldEntity.cc 23 objects/test1.cc 24 objects/test2.cc 25 objects/test3.cc 26 objects/Ambient.cc 27 objects/Skybox.cc 28 objects/Camera.cc 29 # objects/SpaceshipSteeringObject.cc 30 objects/Fighter.cc 31 objects/Model.cc 32 objects/SpaceShip.cc 33 objects/NPC.cc 34 objects/Projectile.cc 35 objects/weapon_system/AmmunitionDump.cc 36 objects/weapon_system/BarrelGun.cc 37 objects/weapon_system/BaseWeapon.cc 38 objects/weapon_system/Bullet.cc 39 objects/weapon_system/BulletManager.cc 40 objects/weapon_system/WeaponStation.cc 41 objects/Explosion.cc 42 tools/BillboardSet.cc 43 tools/Light.cc 44 tools/Mesh.cc 45 ) 46 ELSE(WIN32) 47 SET(LINK_OBJECTS_LIBRARY objects) 48 SET(LINK_TOOLS_LIBRARY tools) 49 ENDIF(WIN32) 33 ADD_EXECUTABLE( main ${ORXONOX_SRC_FILES} ) 50 34 51 IF(WIN32) 52 # ADD_LIBRARY(orxonox ${ORXONOX_SRC_FILES}) 53 ELSE(WIN32) 54 ADD_LIBRARY(orxonox SHARED ${ORXONOX_SRC_FILES}) 55 ENDIF(WIN32) 35 SET_TARGET_PROPERTIES( main PROPERTIES LINK_FLAGS "--no-undefined" ) 56 36 57 ADD_EXECUTABLE(../../bin/main ${ORXONOX_SRC_FILES} ${OBJECTS_SRC_FILES}) 58 59 SET_TARGET_PROPERTIES(../../bin/main PROPERTIES LINK_FLAGS "--no-undefined" ) 60 61 TARGET_LINK_LIBRARIES( ../../bin/main 37 TARGET_LINK_LIBRARIES( main 62 38 ${OGRE_LIBRARIES} 63 39 ${OIS_LIBRARIES} 64 loader 40 util 41 core 65 42 audio 66 43 network 67 core 68 hud 69 ${LINK_OBJECTS_LIBRARY} 70 ${LINK_TOOLS_LIBRARY} 71 util 72 particle 44 loader 73 45 ) 74 46 -
code/branches/FICN/src/orxonox/Orxonox.cc
r748 r768 70 70 #include "core/Debug.h" 71 71 #include "hud/HUD.h" 72 #include "objects/weapon _system/BulletManager.h"72 #include "objects/weapon/BulletManager.h" 73 73 #include "GraphicsEngine.h" 74 74 -
code/branches/FICN/src/orxonox/OrxonoxPlatform.h
r729 r768 211 211 212 212 // disable: "conversion from 'double' to 'float', possible loss of data 213 //# pragma warning (disable : 4244) 213 # pragma warning (disable : 4244) 214 215 // disable: "conversion from 'size_t' to 'unsigned int', possible loss of data 216 # pragma warning (disable : 4267) 214 217 215 218 // disable: "truncation from 'double' to 'float' -
code/branches/FICN/src/orxonox/SpaceshipSteering.cc
r742 r768 104 104 if(speedRotateUpDown_ < 0) 105 105 speedRotateUpDown_ += accelerationRotateUpDown_*time; 106 if( abs(speedRotateUpDown_)<accelerationRotateUpDown_*time)106 if(fabsf(speedRotateUpDown_)<accelerationRotateUpDown_*time) 107 107 speedRotateUpDown_ = 0; 108 108 } … … 128 128 if(speedRotateRightLeft_ < 0) 129 129 speedRotateRightLeft_ += accelerationRotateRightLeft_*time; 130 if( abs(speedRotateRightLeft_)<accelerationRotateRightLeft_*time)130 if(fabsf(speedRotateRightLeft_)<accelerationRotateRightLeft_*time) 131 131 speedRotateRightLeft_ = 0; 132 132 } … … 152 152 if(speedLoopRightLeft_ < 0) 153 153 speedLoopRightLeft_ += accelerationLoopRightLeft_*time; 154 if( abs(speedLoopRightLeft_)<accelerationLoopRightLeft_*time)154 if(fabsf(speedLoopRightLeft_)<accelerationLoopRightLeft_*time) 155 155 speedLoopRightLeft_ = 0; 156 156 } -
code/branches/FICN/src/orxonox/core/CMakeLists.txt
r733 r768 1 PROJECT(Orxonox)2 3 1 SET( CORE_SRC_FILES 4 2 BaseObject.cc … … 17 15 ) 18 16 19 IF(WIN32) 20 ADD_LIBRARY(core SHARED ${CORE_SRC_FILES}) 21 ELSE(WIN32) 22 ADD_LIBRARY(core SHARED ${CORE_SRC_FILES}) 23 ENDIF(WIN32) 17 ADD_LIBRARY( core SHARED ${CORE_SRC_FILES}) 18 SET_TARGET_PROPERTIES( core PROPERTIES LINK_FLAGS "--no-undefined" ) 19 20 TARGET_LINK_LIBRARIES( core 21 util 22 ) -
code/branches/FICN/src/orxonox/objects/Explosion.h
r729 r768 5 5 6 6 #include "WorldEntity.h" 7 #include " Timer.h"7 #include "../tools/Timer.h" 8 8 9 9 namespace orxonox -
code/branches/FICN/src/orxonox/objects/Fighter.cc
r742 r768 38 38 #include "../Orxonox.h" 39 39 #include "../particle/ParticleInterface.h" 40 #include "weapon _system/AmmunitionDump.h"41 #include "weapon _system/BarrelGun.h"40 #include "weapon/AmmunitionDump.h" 41 #include "weapon/BarrelGun.h" 42 42 43 43 #include "Fighter.h" -
code/branches/FICN/src/orxonox/objects/Model.h
r729 r768 5 5 6 6 #include "WorldEntity.h" 7 #include " Mesh.h"7 #include "../tools/Mesh.h" 8 8 9 9 class TiXmlElement; // Forward declaration -
code/branches/FICN/src/orxonox/objects/Projectile.h
r729 r768 5 5 6 6 #include "WorldEntity.h" 7 #include " BillboardSet.h"8 #include " Timer.h"7 #include "../tools/BillboardSet.h" 8 #include "../tools/Timer.h" 9 9 10 10 namespace orxonox -
code/branches/FICN/src/orxonox/objects/SpaceShip.h
r736 r768 8 8 9 9 #include "Model.h" 10 #include " BillboardSet.h"10 #include "../tools/BillboardSet.h" 11 11 12 12 class TiXmlElement; // Forward declaration -
code/branches/FICN/src/orxonox/objects/WorldEntity.h
r742 r768 13 13 #include "orxonox/core/BaseObject.h" 14 14 #include "Tickable.h" 15 #include " Mesh.h"15 #include "../tools/Mesh.h" 16 16 17 17 namespace orxonox -
code/branches/FICN/src/orxonox/objects/test2.h
r734 r768 3 3 4 4 #include "orxonox/core/BaseObject.h" 5 #include " Timer.h"5 #include "../tools/Timer.h" 6 6 7 7 namespace orxonox -
code/branches/FICN/src/util/CMakeLists.txt
r744 r768 1 1 PROJECT(Orxonox) 2 2 3 PROJECT(Orxonox)3 AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES) 4 4 5 INCLUDE_DIRECTORIES(tinyxml) 6 7 SET (SRC_FILES 8 tinyxml/tinystr.cc 9 tinyxml/tinyxml.cc 10 tinyxml/tinyxmlerror.cc 11 tinyxml/tinyxmlparser.cc 12 tinyxml/ticpp.cc 5 SET (UTIL_SRC_FILES 6 ${TINYXML_SRC_FILES} 13 7 substring.cc 14 8 ) 15 9 16 10 IF(WIN32) 17 ADD_LIBRARY( util ${SRC_FILES})11 ADD_LIBRARY( util ${UTIL_SRC_FILES} ) 18 12 ELSE(WIN32) 19 ADD_LIBRARY( util SHARED ${SRC_FILES})13 ADD_LIBRARY( util SHARED ${UTIL_SRC_FILES} ) 20 14 ENDIF(WIN32) 21 15 SET_TARGET_PROPERTIES( util PROPERTIES LINK_FLAGS "--no-undefined" ) 22 16 23 17 24 18 IF(TESTING_ENABLED) 25 ADD_SUBDIRECTORY(testing)19 ADD_SUBDIRECTORY(testing) 26 20 ENDIF(TESTING_ENABLED)
Note: See TracChangeset
for help on using the changeset viewer.