Line | |
---|
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 | SET( ORXONOX_SRC_FILES |
---|
14 | Orxonox.cc |
---|
15 | SpaceshipSteering.cc |
---|
16 | Main.cc |
---|
17 | GraphicsEngine.cc |
---|
18 | ) |
---|
19 | |
---|
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) |
---|
50 | |
---|
51 | IF(WIN32) |
---|
52 | # ADD_LIBRARY(orxonox ${ORXONOX_SRC_FILES}) |
---|
53 | ELSE(WIN32) |
---|
54 | ADD_LIBRARY(orxonox SHARED ${ORXONOX_SRC_FILES}) |
---|
55 | ENDIF(WIN32) |
---|
56 | |
---|
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 |
---|
62 | ${OGRE_LIBRARIES} |
---|
63 | ${OIS_LIBRARIES} |
---|
64 | loader |
---|
65 | audio |
---|
66 | network |
---|
67 | core |
---|
68 | hud |
---|
69 | ${LINK_OBJECTS_LIBRARY} |
---|
70 | ${LINK_TOOLS_LIBRARY} |
---|
71 | util |
---|
72 | particle |
---|
73 | ) |
---|
74 | |
---|
Note: See
TracBrowser
for help on using the repository browser.