Changeset 2626 for code/branches/buildsystem2/cmake
- Timestamp:
- Jan 30, 2009, 4:40:20 PM (16 years ago)
- Location:
- code/branches/buildsystem2/cmake
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/BuildConfig.cmake
r2624 r2626 1 1 # 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. 4 18 # 5 19 # 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. 26 25 # 27 26 -
code/branches/buildsystem2/cmake/BuildConfigGCC.cmake
r2624 r2626 1 1 # 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. 4 18 # 5 19 # 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. 26 24 # 27 25 -
code/branches/buildsystem2/cmake/BuildConfigMSVC.cmake
r2624 r2626 1 1 # 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. 4 18 # 5 19 # 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. 26 24 # 27 25 … … 61 59 SET_COMPILER_FLAGS("-MD -O1 -DNDEBUG -MP2" MinSizeRel CACHE) 62 60 61 63 62 ##################### Linker Flags ###################### 64 63 -
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 # 20 34 21 35 FUNCTION(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 # 18 31 19 32 FUNCTION(DETERMINE_VERSION _name _file) -
code/branches/buildsystem2/cmake/FindALUT.cmake
r2624 r2626 2 2 # This module defines 3 3 # ALUT_LIBRARY 4 # ALUT_FOUND, if false, do not try to link toAlut4 # ALUT_FOUND, if false, do not try to link against Alut 5 5 # ALUT_INCLUDE_DIR, where to find the headers 6 6 # … … 18 18 # 19 19 # Several changes and additions by Fabian 'x3n' Landau 20 # Some simplifications by Adrian Friedli 20 # Some simplifications by Adrian Friedli and Reto Grieder 21 21 # > www.orxonox.net < 22 22 -
code/branches/buildsystem2/cmake/FindCEGUI.cmake
r2616 r2626 5 5 # CEGUI_LIBRARY, the library to link against to use CEGUI. 6 6 # 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 7 16 # 8 17 # Created by Matt Williams to find OGRE libraries … … 16 25 # 17 26 # 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 19 29 # > www.orxonox.net < 20 30 -
code/branches/buildsystem2/cmake/FindDirectX.cmake
r2623 r2626 1 1 # Find script for DirectX on Windows 2 # Specifically designed to find dxguid and dinput8 for OIS 2 3 # 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. 6 9 # 7 10 # Several changes and additions by Fabian 'x3n' Landau 11 # Simplifications and CMake 2.6.0 bugfix by Reto Grieder 8 12 # > www.orxonox.net < 9 13 -
code/branches/buildsystem2/cmake/FindENet.cmake
r2624 r2626 4 4 # ENET_FOUND - system has enet 5 5 # ENet_INCLUDE_DIR - the enet include directory 6 # ENet_LIBRAR IES - the libraries needed to useenet6 # ENet_LIBRARY - the library needed to link against enet 7 7 # 8 8 # $ENETDIR is an environment variable used for finding enet. … … 12 12 # 13 13 # 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 15 16 # > www.orxonox.net < 16 17 -
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 1 30 INCLUDE(CompareVersionStrings) 2 31 INCLUDE(FindPackageHandleAdvancedArgs) -
code/branches/buildsystem2/cmake/FindOGRE.cmake
r2616 r2626 7 7 # 8 8 # 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) 10 11 # 11 12 # Redistribution and use is allowed according to the terms of the BSD license. … … 13 14 # Several changes and additions by Fabian 'x3n' Landau 14 15 # Lots of simplifications by Adrian Friedli 16 # Version checking by Reto Grieder 15 17 # > www.orxonox.net < 16 18 -
code/branches/buildsystem2/cmake/FindOgg.cmake
r2616 r2626 1 # - Try to find ogg /vorbis1 # - Try to find ogg 2 2 # Once done this will define 3 3 # … … 11 11 # Several changes and additions by Fabian 'x3n' Landau 12 12 # Most of all rewritten by Adrian Friedli 13 # Debug versions and simplifications by Reto Grieder 13 14 # > www.orxonox.net < 14 15 -
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 1 28 INCLUDE(FindPackageHandleStandardArgs) 2 29 INCLUDE(CompareVersionStrings) -
code/branches/buildsystem2/cmake/FindVorbis.cmake
r2616 r2626 4 4 # VORBIS_FOUND - system has vorbis 5 5 # VORBIS_INCLUDE_DIR 6 # VORBIS_LIBRARY 7 # VORBISENC_LIBRARY 8 # VORBISFILE_LIBRARY 6 # VORBIS_LIBRARIES - vorbis and vorbisfile libraries 9 7 # 10 8 # $VORBISDIR is an environment variable used … … 13 11 # Several changes and additions by Fabian 'x3n' Landau 14 12 # Most of all rewritten by Adrian Friedli 13 # Debug versions and simplifications by Reto Grieder 15 14 # > www.orxonox.net < 16 15 -
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 # 18 41 19 42 # Write to the cache by force, but only if the user didn't edit the value … … 160 183 161 184 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 builds165 # CACHE: Values are witten with SET_CACHE (see above)166 # FORCE: When writing to the cache, the values are set anyway167 # Any variable names (like WIN32, MSVC, etc.): Condition (combined with AND)168 # You can suffix the condition with a NOT if you wish169 170 # Caution: -If you use CACHE after calling the macro without CACHE, the value171 # Will not get written unless FORCE is specified.172 # - Also be aware to always specify the flags in quotes.173 174 185 # Compiler flags, additional arguments: 175 186 # 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 # 17 34 18 35 FUNCTION(GENERATE_TOLUA_BINDINGS _tolua_package _target_source_files) -
code/branches/buildsystem2/cmake/HandleLibraryTypes.cmake
r2624 r2626 1 1 # 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. 4 18 # 5 19 # 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. 26 26 # 27 27 -
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 1 28 INCLUDE(CompareVersionStrings) 2 29 INCLUDE(FindPackageHandleStandardArgs) -
code/branches/buildsystem2/cmake/LibraryConfigApple.cmake
r2617 r2626 1 1 # 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. 4 18 # 5 19 # 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. 26 24 # 27 25 28 ###################### Mac config ########################29 # Set the library directories and special options if30 # your computer is a Mac.31 ###########################################################32 33 26 IF(APPLE) 34 27 MESSAGE(STATUS "Running on Apple. Using customized paths and options.") -
code/branches/buildsystem2/cmake/LibraryConfigMSVC.cmake
r2624 r2626 1 1 # 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. 4 18 # 5 19 # 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. 26 25 # 27 26 -
code/branches/buildsystem2/cmake/LibraryConfigMinGW.cmake
r2624 r2626 1 1 # 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. 4 18 # 5 19 # 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. 26 25 # 27 26 28 ################# MinGW config ####################29 # Set the library directory when using precompiled30 # tarballs for the dependencies under windows31 ###################################################32 27 33 28 IF(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 # 5 26 6 27 IF(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 # 17 29 18 30 # Adds source files with the full path to a list
Note: See TracChangeset
for help on using the changeset viewer.