Changeset 7135 for code/branches
- Timestamp:
- Jun 10, 2010, 12:04:41 AM (14 years ago)
- Location:
- code/branches/presentation3
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/cmake/TargetUtilities.cmake
r7132 r7135 47 47 # SOURCE_FILES: Source files for the target 48 48 # DEFINE_SYMBOL: Sets the DEFINE_SYMBOL target property 49 # Usage: DEFINE_SYMBOL static "symbol" shared "symbol2" 50 # (or shared "symbol2" static "symbol") 49 51 # TOLUA_FILES: Files with tolua interface 50 52 # PCH_FILE: Precompiled header file … … 225 227 # DEFINE_SYMBOL 226 228 IF(_arg_DEFINE_SYMBOL) 227 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES DEFINE_SYMBOL ${_arg_DEFINE_SYMBOL}) 229 # Format is: static "static_symbol" shared "shared_symbol" 230 # but the order doesn't matter 231 LIST(LENGTH _arg_DEFINE_SYMBOL _define_symbol_length) 232 IF (_define_symbol_length LESS 2) 233 MESSAGE(FATAL_ERROR "Number of expected arguments for DEFINE_SYMBOL is at least 2: static \"STATIC_SYMBOL\" shared \"SHARED_SYMBOL\"") 234 ENDIF() 235 STRING(TOLOWER "${_arg_STATIC}${_arg_SHARED}" _static_shared_lower) 236 LIST(FIND _arg_DEFINE_SYMBOL ${_static_shared_lower} _symbol_definition_index) 237 MATH(EXPR _symbol_definition_index "${_symbol_definition_index} + 1") 238 IF(_symbol_definition_index LESS _define_symbol_length) 239 LIST(GET _arg_DEFINE_SYMBOL ${_symbol_definition_index} _symbol_definition) 240 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES DEFINE_SYMBOL ${_symbol_definition}) 241 ENDIF() 242 ELSEIF(NOT _arg_ORXONOX_EXTERNAL) 243 # Automatically add the macro definitions for our own libraries 244 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES DEFINE_SYMBOL "${_target_name_upper}_${_arg_STATIC}${_arg_SHARED}_BUILD") 228 245 ENDIF() 229 246 -
code/branches/presentation3/src/external/ceguilua/CMakeLists.txt
r6417 r7135 75 75 NO_SOURCE_GROUPS 76 76 DEFINE_SYMBOL 77 "CEGUILUA_EXPORTS"77 shared "CEGUILUA_EXPORTS" static "CEGUILUA_STATIC" 78 78 VERSION 79 79 ${CEGUI_VERSION} -
code/branches/presentation3/src/external/ogreceguirenderer/CMakeLists.txt
r5929 r7135 36 36 ${CEGUI_LIBRARY} 37 37 DEFINE_SYMBOL 38 "OGRE_GUIRENDERER_EXPORTS"38 shared "OGRE_GUIRENDERER_EXPORTS" static "OGRE_GUIRENDERER_STATIC_LIB" 39 39 VERSION 40 40 1.4.9 -
code/branches/presentation3/src/external/ois/CMakeLists.txt
r5929 r7135 57 57 ORXONOX_EXTERNAL 58 58 DEFINE_SYMBOL 59 "OIS_NONCLIENT_BUILD"59 shared "OIS_NONCLIENT_BUILD" static "" 60 60 VERSION 61 61 1.2 -
code/branches/presentation3/src/external/tolua/CMakeLists.txt
r5929 r7135 35 35 ORXONOX_EXTERNAL 36 36 DEFINE_SYMBOL 37 "TOLUA_SHARED_BUILD"37 shared "TOLUA_SHARED_BUILD" static "TOLUA_STATIC_BUILD" 38 38 VERSION 39 39 1.0.92 -
code/branches/presentation3/src/libraries/core/CMakeLists.txt
r6417 r7135 96 96 input/KeyBinder.h 97 97 input/KeyBinderManager.h 98 DEFINE_SYMBOL99 "CORE_SHARED_BUILD"100 98 PCH_FILE 101 99 CorePrecompiledHeaders.h -
code/branches/presentation3/src/libraries/network/CMakeLists.txt
r5781 r7135 60 60 61 61 ORXONOX_ADD_LIBRARY(network 62 DEFINE_SYMBOL63 "NETWORK_SHARED_BUILD"64 62 PCH_FILE 65 63 NetworkPrecompiledHeaders.h -
code/branches/presentation3/src/libraries/tools/CMakeLists.txt
r7073 r7135 20 20 ORXONOX_ADD_LIBRARY(tools 21 21 FIND_HEADER_FILES 22 DEFINE_SYMBOL23 "TOOLS_SHARED_BUILD"24 22 LINK_LIBRARIES 25 23 core -
code/branches/presentation3/src/libraries/util/CMakeLists.txt
r6503 r7135 49 49 ORXONOX_ADD_LIBRARY(util 50 50 FIND_HEADER_FILES 51 DEFINE_SYMBOL52 "UTIL_SHARED_BUILD"53 51 LINK_LIBRARIES 54 52 ${CEGUI_LIBRARY} -
code/branches/presentation3/src/modules/designtools/CMakeLists.txt
r7015 r7135 8 8 MODULE 9 9 FIND_HEADER_FILES 10 DEFINE_SYMBOL11 "DESIGNTOOLS_SHARED_BUILD"12 10 LINK_LIBRARIES 13 11 orxonox -
code/branches/presentation3/src/modules/objects/CMakeLists.txt
r5781 r7135 15 15 PCH_FILE 16 16 ObjectsPrecompiledHeaders.h 17 DEFINE_SYMBOL18 "OBJECTS_SHARED_BUILD"19 17 LINK_LIBRARIES 20 18 orxonox -
code/branches/presentation3/src/modules/overlays/CMakeLists.txt
r5781 r7135 14 14 PCH_FILE 15 15 OverlaysPrecompiledHeaders.h 16 DEFINE_SYMBOL17 "OVERLAYS_SHARED_BUILD"18 16 LINK_LIBRARIES 19 17 orxonox -
code/branches/presentation3/src/modules/pickup/CMakeLists.txt
r6711 r7135 17 17 PickupManager.h 18 18 PickupRepresentation.h 19 DEFINE_SYMBOL20 "PICKUP_SHARED_BUILD"21 19 PCH_FILE 22 20 PickupPrecompiledHeaders.h -
code/branches/presentation3/src/modules/pong/CMakeLists.txt
r5929 r7135 14 14 MODULE 15 15 FIND_HEADER_FILES 16 DEFINE_SYMBOL17 "PONG_SHARED_BUILD"18 16 LINK_LIBRARIES 19 17 orxonox -
code/branches/presentation3/src/modules/questsystem/CMakeLists.txt
r7072 r7135 29 29 Quest.h 30 30 QuestHint.h 31 DEFINE_SYMBOL32 "QUESTSYSTEM_SHARED_BUILD"33 31 PCH_FILE 34 32 QuestsystemPrecompiledHeaders.h -
code/branches/presentation3/src/modules/weapons/CMakeLists.txt
r6951 r7135 13 13 PCH_FILE 14 14 WeaponsPrecompiledHeaders.h 15 DEFINE_SYMBOL16 "WEAPONS_SHARED_BUILD"17 15 LINK_LIBRARIES 18 16 orxonox -
code/branches/presentation3/src/orxonox/CMakeLists.txt
r7072 r7135 64 64 infos/PlayerInfo.h 65 65 sound/SoundManager.h 66 DEFINE_SYMBOL67 "ORXONOX_SHARED_BUILD"68 66 PCH_FILE 69 67 OrxonoxPrecompiledHeaders.h
Note: See TracChangeset
for help on using the changeset viewer.