Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2131


Ignore:
Timestamp:
Nov 4, 2008, 2:11:24 PM (16 years ago)
Author:
rgrieder
Message:

Added CMakeLists.txt to every subfolder and adjusted accordingly.
The CMake script I have written can be used as follows:
ADD_SOURCE_DIRECTORY(_source_list directory) # Adds a new source subdirectory where _source_list is the name of the source list in CURRENT folder
ADD_SOURCE_FILES(_source_list) # Adds the source files in a subdirectory to the source list in the super directory (has to be called!)

Note: When adding more subdirectories in a subdirectory, call ADD_SOURCE_FILES after ADD_SOURCE_DIRECTORY!

Location:
code/trunk
Files:
16 added
9 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/AddSourceFiles.cmake

    r2130 r2131  
     1#    AddSourceFiles.cmake - CMake Module to include source files in subdirectories.
     2#    Author: Reto '1337' Grieder (2008)
     3#
     4#    This program is free software; you can redistribute it and/or modify
     5#    it under the terms of the GNU General Public License as published by
     6#    the Free Software Foundation; either version 2 of the License, or
     7#    (at your option) any later version.
     8#
     9#    This program is distributed in the hope that it will be useful,
     10#    but WITHOUT ANY WARRANTY; without even the implied warranty of
     11#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12#    GNU General Public License for more details.
     13#
     14#    You should have received a copy of the GNU General Public License
     15#    along with this program; if not, write to the Free Software
     16#    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
     17
    118MACRO(ADD_SOURCE_DIRECTORY _target_list _directory)
    219
  • code/trunk/src/core/CMakeLists.txt

    r2087 r2131  
    4242  TclThreadManager.cc
    4343
    44   # input
    45   input/Button.cc
    46   input/CalibratorCallback.cc
    47   input/ExtendedInputState.cc
    48   input/HalfAxis.cc
    49   input/InputBuffer.cc
    50   input/InputCommands.cc
    51   input/InputManager.cc
    52   input/JoyStickDeviceNumberListener.cc
    53   input/KeyBinder.cc
    54   input/KeyDetector.cc
    55   input/SimpleInputState.cc
    56 
    5744  tolua/tolua_bind.cc
    5845)
     46
     47ADD_SOURCE_DIRECTORY(CORE_SRC_FILES input)
    5948
    6049GET_TARGET_PROPERTY(TOLUA_EXE tolua_orxonox LOCATION)
  • code/trunk/src/network/CMakeLists.txt

    r2087 r2131  
    1313  Synchronisable.cc
    1414  Host.cc
    15   packet/Packet.cc
    16   packet/Chat.cc
    17   packet/ClassID.cc
    18   packet/Acknowledgement.cc
    19   packet/Gamestate.cc
    20   packet/Welcome.cc
    21   packet/DeleteObjects.cc
    2215)
     16
     17ADD_SOURCE_DIRECTORY(NETWORK_SRC_FILES packet)
    2318
    2419IF(WIN32)
  • code/trunk/src/orxonox/gamestates/CMakeLists.txt

    r2130 r2131  
    1212
    1313ADD_SOURCE_FILES(SRC_FILES)
    14 
  • code/trunk/src/orxonox/gui/CMakeLists.txt

    r2130 r2131  
    77
    88ADD_SOURCE_FILES(SRC_FILES)
    9 
  • code/trunk/src/orxonox/objects/CMakeLists.txt

    r2130 r2131  
    88  Tickable.cc
    99  Test.cc
     10  Scene.cc
    1011  Script.cc
    11 
    12   Scene.cc
    13   worldentities/WorldEntity.cc
    14   worldentities/PositionableEntity.cc
    15   worldentities/MovableEntity.cc
    16   worldentities/ControllableEntity.cc
    17   worldentities/Model.cc
    18   worldentities/Billboard.cc
    19   worldentities/BlinkingBillboard.cc
    20   worldentities/Light.cc
    21   worldentities/Camera.cc
    22   worldentities/CameraPosition.cc
    23   worldentities/SpawnPoint.cc
    24   worldentities/ParticleEmitter.cc
    25   worldentities/ParticleSpawner.cc
    26 #  worldentities/Backlight.cc
    27 
    28   quest/AddQuest.cc
    29   quest/AddQuestHint.cc
    30   quest/AddReward.cc
    31   quest/ChangeQuestStatus.cc
    32   quest/CompleteQuest.cc
    33   quest/FailQuest.cc
    34   quest/GlobalQuest.cc
    35   quest/LocalQuest.cc
    36   quest/Quest.cc
    37   quest/QuestDescription.cc
    38   quest/QuestEffect.cc
    39   quest/QuestHint.cc
    40   quest/QuestItem.cc
    41   quest/QuestManager.cc
    42   quest/Rewardable.cc
    43 
    44   weaponSystem/WeaponSystem.cc
    45   weaponSystem/WeaponSet.cc
    46   weaponSystem/WeaponSlot.cc
    47   weaponSystem/Weapon.cc
    48   weaponSystem/Munition.cc
    49 
    50   worldentities/triggers/Trigger.cc
    51   worldentities/triggers/DistanceTrigger.cc
    52   worldentities/triggers/EventTrigger.cc
    53 
    54   worldentities/pawns/Spectator.cc
    55   worldentities/pawns/Pawn.cc
    56   worldentities/pawns/SpaceShip.cc
    57 
    58   infos/Info.cc
    59   infos/Level.cc
    60   infos/PlayerInfo.cc
    61   infos/HumanPlayer.cc
    62 
    63   gametypes/Gametype.cc
    6412)
    6513
    6614ADD_SOURCE_DIRECTORY(SRC_FILES controllers)
     15ADD_SOURCE_DIRECTORY(SRC_FILES gametypes)
     16ADD_SOURCE_DIRECTORY(SRC_FILES infos)
     17#ADD_SOURCE_DIRECTORY(SRC_FILES pickup)
     18ADD_SOURCE_DIRECTORY(SRC_FILES quest)
     19ADD_SOURCE_DIRECTORY(SRC_FILES weaponSystem)
     20ADD_SOURCE_DIRECTORY(SRC_FILES worldentities)
    6721
    6822ADD_SOURCE_FILES(SRC_FILES)
    69 
  • code/trunk/src/orxonox/objects/controllers/CMakeLists.txt

    r2130 r2131  
    55
    66ADD_SOURCE_FILES(SRC_FILES)
    7 
  • code/trunk/src/orxonox/overlays/CMakeLists.txt

    r2130 r2131  
    33  OverlayGroup.cc
    44  OverlayText.cc
    5 
    6   console/InGameConsole.cc
    7 
    8   debug/DebugFPSText.cc
    9   debug/DebugRTRText.cc
    10 
    11   hud/HUDBar.cc
    12   hud/HUDNavigation.cc
    13   hud/HUDRadar.cc
    14   hud/HUDSpeedBar.cc
    15   hud/ChatOverlay.cc
    165)
    176
     7ADD_SOURCE_DIRECTORY(SRC_FILES console)
     8ADD_SOURCE_DIRECTORY(SRC_FILES debug)
     9ADD_SOURCE_DIRECTORY(SRC_FILES hud)
     10
    1811ADD_SOURCE_FILES(SRC_FILES)
    19 
  • code/trunk/src/orxonox/tools/CMakeLists.txt

    r2130 r2131  
    99
    1010ADD_SOURCE_FILES(SRC_FILES)
    11 
Note: See TracChangeset for help on using the changeset viewer.