Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2009, 4:40:20 PM (16 years ago)
Author:
rgrieder
Message:

Added license text to all CMake files except to the subdirectoties of the libraries.
Also adjusted some the Find script documentation and wrote Descriptions for every file not in src/.

Location:
code/branches/buildsystem2/cmake
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/BuildConfig.cmake

    r2624 r2626  
    11 #
    2  #   ORXONOX - the hottest 3D action shooter ever to exist
    3  #                    > www.orxonox.net <
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    418 #
    519 #
    6  #   License notice:
    7  #
    8  #   This program is free software; you can redistribute it and/or
    9  #   modify it under the terms of the GNU General Public License
    10  #   as published by the Free Software Foundation; either version 2
    11  #   of the License, or (at your option) any later version.
    12  #
    13  #   This program is distributed in the hope that it will be useful,
    14  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  #   GNU General Public License for more details.
    17  #
    18  #   You should have received a copy of the GNU General Public License
    19  #   along with this program; if not, write to the Free Software
    20  #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    21  #
    22  #   Author:
    23  #      Reto Grieder
    24  #   Co-authors:
    25  #      ...
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Configures the compilers and sets build options.
     24 #    This also includes handling the OGRE plugins and the media directory.
    2625 #
    2726
  • code/branches/buildsystem2/cmake/BuildConfigGCC.cmake

    r2624 r2626  
    11 #
    2  #   ORXONOX - the hottest 3D action shooter ever to exist
    3  #                    > www.orxonox.net <
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    418 #
    519 #
    6  #   License notice:
    7  #
    8  #   This program is free software; you can redistribute it and/or
    9  #   modify it under the terms of the GNU General Public License
    10  #   as published by the Free Software Foundation; either version 2
    11  #   of the License, or (at your option) any later version.
    12  #
    13  #   This program is distributed in the hope that it will be useful,
    14  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  #   GNU General Public License for more details.
    17  #
    18  #   You should have received a copy of the GNU General Public License
    19  #   along with this program; if not, write to the Free Software
    20  #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    21  #
    22  #   Author:
    23  #      Reto Grieder
    24  #   Co-authors:
    25  #      ...
     20 #  Author:
     21 #    Reto Grieder, Adrian Friedli
     22 #  Description:
     23 #    Sets the right compiler and linker flags for GCC.
    2624 #
    2725
  • code/branches/buildsystem2/cmake/BuildConfigMSVC.cmake

    r2624 r2626  
    11 #
    2  #   ORXONOX - the hottest 3D action shooter ever to exist
    3  #                    > www.orxonox.net <
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    418 #
    519 #
    6  #   License notice:
    7  #
    8  #   This program is free software; you can redistribute it and/or
    9  #   modify it under the terms of the GNU General Public License
    10  #   as published by the Free Software Foundation; either version 2
    11  #   of the License, or (at your option) any later version.
    12  #
    13  #   This program is distributed in the hope that it will be useful,
    14  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  #   GNU General Public License for more details.
    17  #
    18  #   You should have received a copy of the GNU General Public License
    19  #   along with this program; if not, write to the Free Software
    20  #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    21  #
    22  #   Author:
    23  #      Reto Grieder
    24  #   Co-authors:
    25  #      ...
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Sets the right compiler and linker flags for the Microsoft Compiler.
    2624 #
    2725
     
    6159SET_COMPILER_FLAGS("-MD  -O1     -DNDEBUG -MP2"      MinSizeRel     CACHE)
    6260
     61
    6362##################### Linker Flags ######################
    6463
  • code/branches/buildsystem2/cmake/CheckOGREPlugins.cmake

    r2624 r2626  
    1 #    Author: Reto '1337' Grieder (2008)
    2 #
    3 #    This program is free software; you can redistribute it and/or modify
    4 #    it under the terms of the GNU General Public License as published by
    5 #    the Free Software Foundation; either version 2 of the License, or
    6 #    (at your option) any later version.
    7 #
    8 #    This program is distributed in the hope that it will be useful,
    9 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
    10 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    11 #    GNU General Public License for more details.
    12 #
    13 #    You should have received a copy of the GNU General Public License
    14 #    along with this program; if not, write to the Free Software
    15 #    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
    16 
    17 ###################################################
    18 # Make sure we have the required plugins for OGRE #
    19 ###################################################
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Function that checks each OGRE plugin for existance. Also looks for debug
     24 #    versions and sets them accordingly.
     25 #    All the plugins specified as function arguments have to be found or the
     26 #    script will issue a fatal error. Additionally, all release plugins have
     27 #    to be found in the same folder. Analogously for debug plugins.
     28 #    Output:
     29 #    OGRE_PLUGINS_FOLDER_DEBUG   Folder with the debug plugins
     30 #    OGRE_PLUGINS_FOLDER_RELEASE Folder with the release plugins
     31 #    OGRE_PLUGINS_DEBUG          Names of the debug plugins without extension
     32 #    OGRE_PLUGINS_RELEASE        Names of the release plugins without ext.
     33 #
    2034
    2135FUNCTION(CHECK_OGRE_PLUGINS)
  • code/branches/buildsystem2/cmake/DetermineVersion.cmake

    r2624 r2626  
    1 #    DetermineVersion.cmake - CMake Module to get the version of a library from
    2 #                             a header file.
    3 #    Author: Reto '1337' Grieder (2009)
    4 #
    5 #    This program is free software; you can redistribute it and/or modify
    6 #    it under the terms of the GNU General Public License as published by
    7 #    the Free Software Foundation; either version 2 of the License, or
    8 #    (at your option) any later version.
    9 #
    10 #    This program is distributed in the hope that it will be useful,
    11 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
    12 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13 #    GNU General Public License for more details.
    14 #
    15 #    You should have received a copy of the GNU General Public License
    16 #    along with this program; if not, write to the Free Software
    17 #    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Inspects a given file for the following expressions
     24 #    "NAME_MAJOR_VERSION #"
     25 #    "NAME_MINOR_VERSION #"
     26 #    "NAME_PATCH_VERSION #"
     27 #    and sets NAME_VERSION accordingly. NAME_PART_VERSION variables are also
     28 #    set. If you wish to look for different parts (e.g. "first" "second", etc.)
     29 #    simply deliver them as additional arguments (have to be three though).
     30 #
    1831
    1932FUNCTION(DETERMINE_VERSION _name _file)
  • code/branches/buildsystem2/cmake/FindALUT.cmake

    r2624 r2626  
    22# This module defines
    33#  ALUT_LIBRARY
    4 #  ALUT_FOUND, if false, do not try to link to Alut
     4#  ALUT_FOUND, if false, do not try to link against Alut
    55#  ALUT_INCLUDE_DIR, where to find the headers
    66#
     
    1818#
    1919# Several changes and additions by Fabian 'x3n' Landau
    20 # Some simplifications by Adrian Friedli
     20# Some simplifications by Adrian Friedli and Reto Grieder
    2121#                 > www.orxonox.net <
    2222
  • code/branches/buildsystem2/cmake/FindCEGUI.cmake

    r2616 r2626  
    55#  CEGUI_LIBRARY, the library to link against to use CEGUI.
    66#  CEGUI_FOUND, If false, do not try to use CEGUI
     7#  CEGUI_VERSION, the version as string "x.y.z"
     8#  CEGUILUA_LIBRARY, Script module library
     9#  CEGUILUA_USE_INTERNAL_LIBRARY, True if CEGUILUA_LIBRARY was not defined here
     10#
     11# Input:
     12#  ENV{CEGUIDIR}, CEGUI path, optional
     13#  FIND CEGUILUA_INTERNAL_SUPPORT, List of all CEGUILua version supported
     14#                                  in the source repository
     15#  CEGUILUA_USE_EXTERNAL_LIBRARY, Force finding of CEGUILua
    716#
    817# Created by Matt Williams to find OGRE libraries
     
    1625#
    1726# Several changes and additions by Fabian 'x3n' Landau
    18 # Lots of simplifications by Adrian Friedli
     27# Lots of simplifications by Adrian Friedli and Reto Grieder
     28# Version checking and CEGUILua finding by Reto Grieder
    1929#                 > www.orxonox.net <
    2030
  • code/branches/buildsystem2/cmake/FindDirectX.cmake

    r2623 r2626  
    11# Find script for DirectX on Windows
     2# Specifically designed to find dxguid and dinput8 for OIS
    23# Once loaded this will define
    3 #   DirectX_FOUND        - system has DirectX
    4 #   DirectX_INCLUDE_DIR  - include directory for DirectX
    5 #   DirectX_LIBRARY      - library for DirectX
     4#   DIRECTX_FOUND        - system has DirectX
     5#   DIRECTX_INCLUDE_DIR  - include directory for DirectX
     6#   DIRECTX_LIBRARIES    - libraries for DirectX
     7#
     8# Set ENV{DXSD_DIR} if that has not been done the SDK installation.
    69#
    710# Several changes and additions by Fabian 'x3n' Landau
     11# Simplifications and CMake 2.6.0 bugfix by Reto Grieder
    812#                 > www.orxonox.net <
    913
  • code/branches/buildsystem2/cmake/FindENet.cmake

    r2624 r2626  
    44#  ENET_FOUND - system has enet
    55#  ENet_INCLUDE_DIR - the enet include directory
    6 #  ENet_LIBRARIES - the libraries needed to use enet
     6#  ENet_LIBRARY - the library needed to link against enet
    77#
    88# $ENETDIR is an environment variable used for finding enet.
     
    1212#
    1313# Several changes and additions by Fabian 'x3n' Landau
    14 # Lots of simplifications by Adrian Friedli
     14# Lots of simplifications by Adrian Friedli and Reto Grieder
     15# Version checking by Reto Grieder
    1516#                 > www.orxonox.net <
    1617
  • code/branches/buildsystem2/cmake/FindLua.cmake

    r2624 r2626  
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Finds either Lua 5.0 or Lua 5.1 on the system. The script regards the
     24 #    VERSION, EXACT, REQUIRED and QUIET arguments. A note about the EXACT
     25 #    argument: EXACT 5 will match all Lua 5 versions.
     26 #    When the search was successful, the following variables are set:
     27 #    LUA_INCLUDE_DIR, LUA_LIBRARIES, LUA_VERSION, LUA_FOUND
     28 #
     29
    130INCLUDE(CompareVersionStrings)
    231INCLUDE(FindPackageHandleAdvancedArgs)
  • code/branches/buildsystem2/cmake/FindOGRE.cmake

    r2616 r2626  
    77#
    88# Copyright © 2007, Matt Williams
    9 # Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture of the ETH Zurich
     9# Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture
     10# of the ETH Zurich (removed later on)
    1011#
    1112# Redistribution and use is allowed according to the terms of the BSD license.
     
    1314# Several changes and additions by Fabian 'x3n' Landau
    1415# Lots of simplifications by Adrian Friedli
     16# Version checking by Reto Grieder
    1517#                 > www.orxonox.net <
    1618
  • code/branches/buildsystem2/cmake/FindOgg.cmake

    r2616 r2626  
    1 # - Try to find ogg/vorbis
     1# - Try to find ogg
    22# Once done this will define
    33#
     
    1111# Several changes and additions by Fabian 'x3n' Landau
    1212# Most of all rewritten by Adrian Friedli
     13# Debug versions and simplifications by Reto Grieder
    1314#                 > www.orxonox.net <
    1415
  • code/branches/buildsystem2/cmake/FindPackageHandleAdvancedArgs.cmake

    r2624 r2626  
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Extension of the standard module "FindPackageHandleStandardArgs".
     24 #    This function also checks the version requirements. Also regards the
     25 #    EXACT keyword if specified in FIND_PACKAGE(...).
     26 #
     27 
    128INCLUDE(FindPackageHandleStandardArgs)
    229INCLUDE(CompareVersionStrings)
  • code/branches/buildsystem2/cmake/FindVorbis.cmake

    r2616 r2626  
    44#  VORBIS_FOUND - system has vorbis
    55#  VORBIS_INCLUDE_DIR
    6 #  VORBIS_LIBRARY
    7 #  VORBISENC_LIBRARY
    8 #  VORBISFILE_LIBRARY
     6#  VORBIS_LIBRARIES - vorbis and vorbisfile libraries
    97#
    108# $VORBISDIR is an environment variable used
     
    1311# Several changes and additions by Fabian 'x3n' Landau
    1412# Most of all rewritten by Adrian Friedli
     13# Debug versions and simplifications by Reto Grieder
    1514#                 > www.orxonox.net <
    1615
  • code/branches/buildsystem2/cmake/FlagUtilities.cmake

    r2624 r2626  
    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 
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Sets the compiler/linker flags. After the flags you can specify more args:
     24 #    Release, Debug, RelWithDebInfo, MinSizeRel: Build configs (inclusive)
     25 #    ReleaseAll: Sets the flags of all three release builds
     26 #    CACHE: Values are witten with SET_CACHE (see above)
     27 #    FORCE: When writing to the cache, the values are set anyway
     28 #    Any variable names (like WIN32, MSVC, etc.): Condition (combined with AND)
     29 #    You can suffix the condition with a NOT if you wish
     30 #  Functions:
     31 #    [ADD/SET/REMOVE]_[COMPILER/LINKER]_FLAGS
     32 #  Caution: -If you use CACHE after calling the macro without CACHE, the value
     33 #            Will not get written unless FORCE is specified.
     34 #          - Also be aware to always specify the flags in quotes.
     35 #  Example:
     36 #    REMOVE_COMPILER_FLAGS("/Gm "asdf" -q"test -foo" CXX ReleaseAll NOT UNIX)
     37 #    This will only remove the CXX (C++) flags on a non Unix system for the
     38 #    Release, RelWithDebInfo and MinSizeRel configurations. The macros should
     39 #    be able to cope with "test -foo" that is like another flag in the string.
     40 #
    1841
    1942# Write to the cache by force, but only if the user didn't edit the value
     
    160183
    161184
    162 # Sets the compiler/linker flags. After the flags you can specify more args:
    163 # Release, Debug, RelWithDebInfo, MinSizeRel: Build configs (inclusive)
    164 # ReleaseAll: Sets the flags of all three release builds
    165 # CACHE: Values are witten with SET_CACHE (see above)
    166 # FORCE: When writing to the cache, the values are set anyway
    167 # Any variable names (like WIN32, MSVC, etc.): Condition (combined with AND)
    168 #   You can suffix the condition with a NOT if you wish
    169 
    170 # Caution: -If you use CACHE after calling the macro without CACHE, the value
    171 #           Will not get written unless FORCE is specified.
    172 #          - Also be aware to always specify the flags in quotes.
    173 
    174185# Compiler flags, additional arguments:
    175186# C, CXX: Specify a language, default is both
  • code/branches/buildsystem2/cmake/GenerateToluaBindings.cmake

    r2621 r2626  
    1 #    UseTolua.cmake - CMake Module to generate LUA Bindings with tolua
    2 #    Copyright (C) 2008  Adrian Friedli
    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
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Adrian Friedli
     22 #  Description:
     23 #    Sets the CMake options that will generate Tolua++ bindings.
     24 #  Parameters:
     25 #    _tolua_package - Name of the package, e.g. "Core"
     26 #    _target_source_files - Variable name of the target source files, the
     27 #                           script will add the generated files to this list.
     28 #    ARGN - The header files in the style "INTPUTFILES Foo.h Bar.h"
     29 #  Global Variables: (need to be set before)
     30 #    TOLUA_PARSER_SOURCE - Lua file with the parser source code
     31 #    TOLUA_PARSER_DEPENDENCIES - All the dependent lua files
     32 #    ORXONOX_RUNTIME_LIBRARY_DIRECTORY - Working directory
     33 #
    1734
    1835FUNCTION(GENERATE_TOLUA_BINDINGS _tolua_package _target_source_files)
  • code/branches/buildsystem2/cmake/HandleLibraryTypes.cmake

    r2624 r2626  
    11 #
    2  #   ORXONOX - the hottest 3D action shooter ever to exist
    3  #                    > www.orxonox.net <
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    418 #
    519 #
    6  #   License notice:
    7  #
    8  #   This program is free software; you can redistribute it and/or
    9  #   modify it under the terms of the GNU General Public License
    10  #   as published by the Free Software Foundation; either version 2
    11  #   of the License, or (at your option) any later version.
    12  #
    13  #   This program is distributed in the hope that it will be useful,
    14  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  #   GNU General Public License for more details.
    17  #
    18  #   You should have received a copy of the GNU General Public License
    19  #   along with this program; if not, write to the Free Software
    20  #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    21  #
    22  #   Author:
    23  #      Reto Grieder
    24  #   Co-authors:
    25  #      ...
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Checks debug and optimized libaries and sets the variable ${_name}_LIBRARY
     24 #    accordingly. If only an optimized library was found, the "optimized"
     25 #    keyword is omitted to support the debug version too.
    2626 #
    2727
  • code/branches/buildsystem2/cmake/LibraryConfig.cmake

    r2624 r2626  
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Configures the external libraries. Whenever possible, the find scripts
     24 #    from the CMake module path are used, but that required some adjustments
     25 #    for certain libraries (Boost, OpenAL, TCL)
     26 #
     27 
    128INCLUDE(CompareVersionStrings)
    229INCLUDE(FindPackageHandleStandardArgs)
  • code/branches/buildsystem2/cmake/LibraryConfigApple.cmake

    r2617 r2626  
    11 #
    2  #   ORXONOX - the hottest 3D action shooter ever to exist
    3  #                    > www.orxonox.net <
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    418 #
    519 #
    6  #   License notice:
    7  #
    8  #   This program is free software; you can redistribute it and/or
    9  #   modify it under the terms of the GNU General Public License
    10  #   as published by the Free Software Foundation; either version 2
    11  #   of the License, or (at your option) any later version.
    12  #
    13  #   This program is distributed in the hope that it will be useful,
    14  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  #   GNU General Public License for more details.
    17  #
    18  #   You should have received a copy of the GNU General Public License
    19  #   along with this program; if not, write to the Free Software
    20  #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    21  #
    22  #   Author:
    23  #      Yuning Chai
    24  #   Co-authors:
    25  #      ...
     20 #  Author:
     21 #    Yuning Chai
     22 #  Description:
     23 #    Sets necessary library options and paths on Mac.
    2624 #
    2725 
    28 ###################### Mac config ########################
    29 # Set the library directories and special options if
    30 # your computer is a Mac.
    31 ###########################################################
    32 
    3326IF(APPLE)
    3427  MESSAGE(STATUS "Running on Apple. Using customized paths and options.")
  • code/branches/buildsystem2/cmake/LibraryConfigMSVC.cmake

    r2624 r2626  
    11 #
    2  #   ORXONOX - the hottest 3D action shooter ever to exist
    3  #                    > www.orxonox.net <
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    418 #
    519 #
    6  #   License notice:
    7  #
    8  #   This program is free software; you can redistribute it and/or
    9  #   modify it under the terms of the GNU General Public License
    10  #   as published by the Free Software Foundation; either version 2
    11  #   of the License, or (at your option) any later version.
    12  #
    13  #   This program is distributed in the hope that it will be useful,
    14  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  #   GNU General Public License for more details.
    17  #
    18  #   You should have received a copy of the GNU General Public License
    19  #   along with this program; if not, write to the Free Software
    20  #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    21  #
    22  #   Author:
    23  #      Reto Grieder
    24  #   Co-authors:
    25  #      ...
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Sets the library directories when using precompiled dependency archives
     24 #    on Windows with Microsoft Visual Studio.
    2625 #
    2726 
  • code/branches/buildsystem2/cmake/LibraryConfigMinGW.cmake

    r2624 r2626  
    11 #
    2  #   ORXONOX - the hottest 3D action shooter ever to exist
    3  #                    > www.orxonox.net <
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    418 #
    519 #
    6  #   License notice:
    7  #
    8  #   This program is free software; you can redistribute it and/or
    9  #   modify it under the terms of the GNU General Public License
    10  #   as published by the Free Software Foundation; either version 2
    11  #   of the License, or (at your option) any later version.
    12  #
    13  #   This program is distributed in the hope that it will be useful,
    14  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  #   GNU General Public License for more details.
    17  #
    18  #   You should have received a copy of the GNU General Public License
    19  #   along with this program; if not, write to the Free Software
    20  #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    21  #
    22  #   Author:
    23  #      Reto Grieder
    24  #   Co-authors:
    25  #      ...
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Sets the library directories when using precompiled dependency archives
     24 #    on Windows with MinGW.
    2625 #
    2726 
    28 ################# MinGW config ####################
    29 # Set the library directory when using precompiled
    30 # tarballs for the dependencies under windows
    31 ###################################################
    3227
    3328IF(MINGW AND LIBRARY_USE_PACKAGE_IF_SUPPORTED)
  • code/branches/buildsystem2/cmake/LibraryConfigTardis.cmake

    r2624 r2626  
    1 ################# Tardis config #################
    2 # This code checks whether the current machine  #
    3 # is an ETH tardis box.                         #
    4 #################################################
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Adrian Friedli
     22 #  Description:
     23 #    Sets the correct find script paths on the ETH Tardis workstations.
     24 #    Also sets the TARDIS variable.
     25 #
    526
    627IF(UNIX)
  • code/branches/buildsystem2/cmake/SourceFileUtilities.cmake

    r2620 r2626  
    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
     1 #
     2 #             ORXONOX - the hottest 3D action shooter ever to exist
     3 #                             > www.orxonox.net <
     4 #
     5 #        This program is free software; you can redistribute it and/or
     6 #         modify it under the terms of the GNU General Public License
     7 #        as published by the Free Software Foundation; either version 2
     8 #            of the License, or (at your option) any later version.
     9 #
     10 #       This program is distributed in the hope that it will be useful,
     11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 #                 GNU General Public License for more details.
     14 #
     15 #   You should have received a copy of the GNU General Public License along
     16 #      with this program; if not, write to the Free Software Foundation,
     17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     18 #
     19 #
     20 #  Author:
     21 #    Reto Grieder
     22 #  Description:
     23 #    Several functions that help organising the source tree.
     24 #    [ADD/SET]_SOURCE_FILES - Writes source files to the cache by force and
     25 #                             adds the current directory.
     26 #    GET_ALL_HEADER_FILES - Finds all header files recursively.
     27 #    GENERATE_SOURCE_GROUPS - Set Visual Studio source groups.
     28 #
    1729
    1830# Adds source files with the full path to a list
Note: See TracChangeset for help on using the changeset viewer.