Changeset 8285 for code/branches/kicklib2/cmake/tools
- Timestamp:
- Apr 21, 2011, 7:43:10 PM (14 years ago)
- Location:
- code/branches/kicklib2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2
-
code/branches/kicklib2/cmake/tools/FindALUT.cmake
r8284 r8285 32 32 FIND_PATH(ALUT_INCLUDE_DIR alut.h 33 33 PATHS $ENV{ALUTDIR} 34 PATH_SUFFIXES include include/AL Headers Headers/AL34 PATH_SUFFIXES include include/AL 35 35 ) 36 36 FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED -
code/branches/kicklib2/cmake/tools/FindCEGUI.cmake
r8284 r8285 34 34 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h 35 35 PATHS $ENV{CEGUIDIR} 36 PATH_SUFFIXES include include/CEGUI CEGUI.framework/Headers36 PATH_SUFFIXES include include/CEGUI 37 37 ) 38 38 … … 44 44 NAMES CEGUIBase CEGUI 45 45 PATHS $ENV{CEGUIDIR} 46 PATH_SUFFIXES lib bin CEGUIBase.framework CEGUI.framework46 PATH_SUFFIXES lib bin 47 47 ) 48 48 FIND_LIBRARY(CEGUI_LIBRARY_DEBUG … … 56 56 # Find CEGUILua headers 57 57 FIND_PATH(CEGUILUA_INCLUDE_DIR CEGUILua.h 58 PATHS $ENV{CEGUIDIR} ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule 59 PATH_SUFFIXES include include/CEGUI CEGUILuaScriptModule.framework/Headers 58 PATHS 59 $ENV{CEGUIDIR} 60 $ENV{CEGUILUADIR} 61 ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule 62 PATH_SUFFIXES include include/CEGUI 60 63 ) 61 64 # Find CEGUILua libraries 62 65 FIND_LIBRARY(CEGUILUA_LIBRARY_OPTIMIZED 63 66 NAMES CEGUILua CEGUILuaScriptModule 64 PATHS $ENV{CEGUIDIR} 65 PATH_SUFFIXES lib bin CEGUILuaScriptModule.framework67 PATHS $ENV{CEGUIDIR} $ENV{CEGUILUADIR} 68 PATH_SUFFIXES lib bin 66 69 ) 67 70 FIND_LIBRARY(CEGUILUA_LIBRARY_DEBUG 68 71 NAMES CEGUILuad CEGUILua_d CEGUILuaScriptModuled CEGUILuaScriptModule_d 69 PATHS $ENV{CEGUIDIR} 72 PATHS $ENV{CEGUIDIR} $ENV{CEGUILUADIR} 70 73 PATH_SUFFIXES lib bin 71 74 ) … … 79 82 # For newer CEGUI versions >= 0.7 80 83 ${CEGUILUA_INCLUDE_DIR}/support/tolua++ 81 # For Apples 82 $ENV{CEGUIDIR} 83 PATH_SUFFIXES ceguitolua++.framework/Headers 84 NO_DEFAULT_PATH # MUST be in CEGUILUA_INCLUDE_DIR somewhere 84 # For Mac OS X, tolua++ is a separate framework in the dependency package 85 ${DEP_FRAMEWORK_DIR} 86 NO_DEFAULT_PATH # Don't attempt to find tolua++ installed on the system 85 87 ) 86 88 # Find CEGUI Tolua++ libraries 87 89 FIND_LIBRARY(CEGUI_TOLUA_LIBRARY_OPTIMIZED 88 90 NAMES CEGUItoluapp tolua++ ceguitolua++ 89 PATHS $ENV{CEGUIDIR} 90 PATH_SUFFIXES lib bin ceguitolua++.framework91 PATHS $ENV{CEGUIDIR} ${CEGUITOLUADIR} 92 PATH_SUFFIXES lib bin 91 93 ) 92 94 FIND_LIBRARY(CEGUI_TOLUA_LIBRARY_DEBUG 93 95 NAMES CEGUItoluappd CEGUItoluapp_d tolua++d tolua++_d 94 PATHS $ENV{CEGUIDIR} 96 PATHS $ENV{CEGUIDIR} ${CEGUITOLUADIR} 95 97 PATH_SUFFIXES lib bin 96 98 ) … … 101 103 # Find CEGUI OGRE Renderer headers 102 104 FIND_PATH(CEGUI_OGRE_RENDERER_INCLUDE_DIR CEGUIOgreRenderer.h 103 PATHS $ENV{CEGUIDIR} ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre 104 PATH_SUFFIXES include include/CEGUI CEGUI.framework/Headers 105 PATHS 106 $ENV{CEGUIDIR} 107 $ENV{CEGUIOGRERENDERERDIR} 108 ${CEGUI_INCLUDE_DIR}/RendererModules/Ogre 109 PATH_SUFFIXES include include/CEGUI 105 110 ) 106 111 # Find CEGUI OGRE Renderer libraries 107 112 FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED 108 113 NAMES CEGUIOgreRenderer 109 PATHS $ENV{CEGUIDIR} 114 PATHS $ENV{CEGUIDIR} $ENV{CEGUIOGRERENDERERDIR} 110 115 PATH_SUFFIXES lib bin 111 116 ) 112 117 FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_DEBUG 113 118 NAMES CEGUIOgreRendererd CEGUIOgreRenderer_d 114 PATHS $ENV{CEGUIDIR} 119 PATHS $ENV{CEGUIDIR} $ENV{CEGUIOGRERENDERERDIR} 115 120 PATH_SUFFIXES lib bin 116 121 ) -
code/branches/kicklib2/cmake/tools/FindLua5.1.cmake
r8283 r8285 56 56 # Find include path 57 57 FIND_PATH(LUA5.1_INCLUDE_DIR lua.h 58 PATHS $ENV{LUA5.1_DIR} 58 PATHS $ENV{LUA5.1_DIR} $ENV{LUA_DIR} 59 59 PATH_SUFFIXES include/lua51 include/lua5.1 include/lua include 60 60 ) -
code/branches/kicklib2/cmake/tools/FindOGRE.cmake
r7163 r8285 23 23 FIND_PATH(OGRE_INCLUDE_DIR Ogre.h 24 24 PATHS $ENV{OGRE_HOME} 25 PATH_SUFFIXES include include/OGRE Ogre.framework/Headers25 PATH_SUFFIXES include include/OGRE 26 26 ) 27 27 FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED … … 33 33 NAMES OgreMaind OgreMain_d OgreMainD OgreMain_D Ogred Ogre_d OgreD Ogre_d 34 34 PATHS $ENV{OGRE_HOME} 35 PATH_SUFFIXES lib bin/Debug bin/debug Debug debug Versions/A35 PATH_SUFFIXES lib bin/Debug bin/debug Debug debug 36 36 ) 37 37 -
code/branches/kicklib2/cmake/tools/FindOgg.cmake
r8284 r8285 22 22 ) 23 23 FIND_LIBRARY(OGG_LIBRARY_OPTIMIZED 24 NAMES ogg ogg-0 24 NAMES ogg ogg-0 libogg 25 25 PATHS $ENV{OGGDIR} 26 26 PATH_SUFFIXES lib 27 27 ) 28 28 FIND_LIBRARY(OGG_LIBRARY_DEBUG 29 NAMES oggd ogg_d oggD ogg_D 29 NAMES oggd ogg_d oggD ogg_D libogg_d 30 30 PATHS $ENV{OGGDIR} 31 31 PATH_SUFFIXES lib -
code/branches/kicklib2/cmake/tools/FindVorbis.cmake
r8284 r8285 22 22 ) 23 23 FIND_LIBRARY(VORBIS_LIBRARY_OPTIMIZED 24 NAMES vorbis vorbis-0 24 NAMES vorbis vorbis-0 libvorbis 25 25 PATHS $ENV{VORBISDIR} 26 26 PATH_SUFFIXES lib 27 27 ) 28 28 FIND_LIBRARY(VORBIS_LIBRARY_DEBUG 29 NAMES vorbisd vorbis_d vorbisD vorbis_D 29 NAMES vorbisd vorbis_d vorbisD vorbis_D libvorbis_d 30 30 PATHS $ENV{VORBISDIR} 31 31 PATH_SUFFIXES lib 32 32 ) 33 33 FIND_LIBRARY(VORBISFILE_LIBRARY_OPTIMIZED 34 NAMES vorbisfile vorbisfile-3 34 NAMES vorbisfile vorbisfile-3 libvorbisfile 35 35 PATHS $ENV{VORBISDIR} 36 36 PATH_SUFFIXES lib 37 37 ) 38 38 FIND_LIBRARY(VORBISFILE_LIBRARY_DEBUG 39 NAMES vorbisfiled vorbisfile_d vorbisfileD vorbisfile_D 39 NAMES vorbisfiled vorbisfile_d vorbisfileD vorbisfile_D libvorbisfile_d 40 40 PATHS $ENV{VORBISDIR} 41 41 PATH_SUFFIXES lib -
code/branches/kicklib2/cmake/tools/TargetUtilities.cmake
r8284 r8285 53 53 # This function also installs the target! 54 54 # Prerequisistes: 55 # ORXONOX_DEFAULT_LINK , ORXONOX_CONFIG_FILES, ORXONOX_CONFIG_FILES_GENERATED55 # ORXONOX_DEFAULT_LINK 56 56 # Parameters: 57 57 # _target_name, ARGN for the macro arguments … … 206 206 SOURCE_GROUP("Config" FILES ${CMAKE_CURRENT_SOURCE_DIR}/${_arg_PCH_FILE}) 207 207 ENDIF() 208 # Also include all config files209 LIST(APPEND _${_target_name}_files ${ORXONOX_CONFIG_FILES} ${ORXONOX_CONFIG_FILES_GENERATED})210 # Add unprocessed config files to the 'Config' section211 SOURCE_GROUP("Config" FILES ${ORXONOX_CONFIG_FILES})212 # Add generated config files to the 'Generated' section213 SOURCE_GROUP("Generated" FILES ${ORXONOX_CONFIG_FILES_GENERATED})214 208 ENDIF() 215 209 ENDIF() … … 291 285 IF(_arg_LINK_LIBRARIES) 292 286 TARGET_LINK_LIBRARIES(${_target_name} ${_arg_LINK_LIBRARIES}) 287 ENDIF() 288 289 # RPATH settings for the installation 290 IF(UNIX) 291 SET(_rpath ${LIBRARY_INSTALL_DIRECTORY}) 292 IF(_arg_MODULE) 293 LIST(APPEND _rpath ${MODULE_INSTALL_DIRECTORY}) 294 ENDIF() 295 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES INSTALL_RPATH "${_rpath}") 293 296 ENDIF() 294 297
Note: See TracChangeset
for help on using the changeset viewer.