Changeset 8071 for code/branches/kicklib/cmake/tools
- Timestamp:
- Mar 14, 2011, 3:53:38 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
-
code/branches/kicklib/cmake/tools/CheckOGREPlugins.cmake
r7163 r8071 53 53 NAMES ${_plugin} 54 54 PATHS $ENV{OGRE_HOME} $ENV{OGRE_PLUGIN_DIR} 55 PATH_SUFFIXES bin/Release bin/release Release release lib lib/OGRE bin 55 PATH_SUFFIXES bin/Release bin/release Release release lib lib/OGRE bin Ogre.framework/Resources 56 56 ) 57 57 FIND_LIBRARY(OGRE_PLUGIN_${_plugin}_DEBUG 58 58 NAMES ${_plugin}d ${_plugin}_d ${_plugin} 59 59 PATHS $ENV{OGRE_HOME} $ENV{OGRE_PLUGIN_DIR} 60 PATH_SUFFIXES bin/Debug bin/debug Debug debug lib lib/OGRE bin 60 PATH_SUFFIXES bin/Debug bin/debug Debug debug lib lib/OGRE bin Ogre.framework/Resources 61 61 ) 62 62 # We only need at least one render system. Check at the end. -
code/branches/kicklib/cmake/tools/FindALUT.cmake
r7163 r8071 1 # - Locate FreeAlut 1 # Find ALUT includes and library 2 # 2 3 # This module defines 3 # ALUT_ LIBRARY4 # ALUT_ FOUND, if false, do not try to link against Alut5 # ALUT_ INCLUDE_DIR, where to find the headers4 # ALUT_INCLUDE_DIR 5 # ALUT_LIBRARY, the library to link against to use ALUT. 6 # ALUT_FOUND, If false, do not try to use ALUT 6 7 # 7 # $ALUTDIR is an environment variable that would8 # correspond to the ./configure --prefix=$ALUTDIR9 # used in building Alut.8 # Copyright © 2007, Matt Williams 9 # Modified by Nicolas Schlumberger to make it work on the Tardis-Infrastucture 10 # of the ETH Zurich (removed later on) 10 11 # 11 # Created by Eric Wing. This was influenced by the FindSDL.cmake module. 12 # On OSX, this will prefer the Framework version (if found) over others. 13 # People will have to manually change the cache values of 14 # ALUT_LIBRARY to override this selection. 15 # Tiger will include OpenAL as part of the System. 16 # But for now, we have to look around. 17 # Other (Unix) systems should be able to utilize the non-framework paths. 12 # Redistribution and use is allowed according to the terms of the BSD license. 18 13 # 19 14 # Several changes and additions by Fabian 'x3n' Landau 20 # Some simplifications by Adrian Friedli and Reto Grieder 15 # Lots of simplifications by Adrian Friedli 16 # Version checking by Reto Grieder 17 # Adaption of the OGRE find script to ALUT by Kevin Young 21 18 # > www.orxonox.net < 22 19 23 INCLUDE(FindPackageHandle StandardArgs)20 INCLUDE(FindPackageHandleAdvancedArgs) 24 21 INCLUDE(HandleLibraryTypes) 25 22 26 FIND_PATH(ALUT_INCLUDE_DIR AL/alut.h 27 PATHS 28 $ENV{ALUTDIR} 29 ~/Library/Frameworks/OpenAL.framework 30 /Library/Frameworks/OpenAL.framework 31 /System/Library/Frameworks/OpenAL.framework # Tiger 32 PATH_SUFFIXES include include/OpenAL include/AL Headers 23 FIND_PATH(ALUT_INCLUDE_DIR alut.h 24 PATHS $ENV{ALUTDIR} 25 PATH_SUFFIXES include include/AL ALUT 26 ) 27 FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED 28 NAMES ALUT alut 29 PATHS $ENV{ALUTDIR} 30 PATH_SUFFIXES lib bin/Release bin/release Release release ALUT 31 ) 32 FIND_LIBRARY(ALUT_LIBRARY_DEBUG 33 NAMES ALUTD alutd alut_d alutD alut_D 34 PATHS $ENV{ALUTDIR} 35 PATH_SUFFIXES lib bin/Debug bin/debug Debug debug ALUT 33 36 ) 34 37 35 # I'm not sure if I should do a special casing for Apple. It is36 # unlikely that other Unix systems will find the framework path.37 # But if they do ([Next|Open|GNU]Step?),38 # do they want the -framework option also?39 IF(${ALUT_INCLUDE_DIR} MATCHES ".framework")40 41 STRING(REGEX REPLACE "(.*)/.*\\.framework/.*" "\\1" ALUT_FRAMEWORK_PATH_TMP ${ALUT_INCLUDE_DIR})42 IF("${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/Library/Frameworks"43 OR "${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/System/Library/Frameworks"44 )45 # String is in default search path, don't need to use -F46 SET (ALUT_LIBRARY_OPTIMIZED "-framework OpenAL" CACHE STRING "OpenAL framework for OSX")47 ELSE()48 # String is not /Library/Frameworks, need to use -F49 SET(ALUT_LIBRARY_OPTIMIZED "-F${ALUT_FRAMEWORK_PATH_TMP} -framework OpenAL" CACHE STRING "OpenAL framework for OSX")50 ENDIF()51 # Clear the temp variable so nobody can see it52 SET(ALUT_FRAMEWORK_PATH_TMP "" CACHE INTERNAL "")53 54 ELSE()55 FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED56 NAMES alut57 PATHS $ENV{ALUTDIR}58 PATH_SUFFIXES lib libs59 )60 FIND_LIBRARY(ALUT_LIBRARY_DEBUG61 NAMES alutd alut_d alutD alut_D62 PATHS $ENV{ALUTDIR}63 PATH_SUFFIXES lib libs64 )65 ENDIF()66 67 38 # Handle the REQUIRED argument and set ALUT_FOUND 68 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG 69 ALUT_LIBRARY_OPTIMIZED 70 ALUT_INCLUDE_DIR 39 # Also check the version requirements 40 FIND_PACKAGE_HANDLE_ADVANCED_ARGS(ALUT DEFAULT_MSG 41 ALUT_LIBRARY_OPTIMIZED 42 ALUT_INCLUDE_DIR 71 43 ) 72 44 … … 75 47 76 48 MARK_AS_ADVANCED( 77 78 79 49 ALUT_INCLUDE_DIR 50 ALUT_LIBRARY_OPTIMIZED 51 ALUT_LIBRARY_DEBUG 80 52 ) -
code/branches/kicklib/cmake/tools/GenerateToluaBindings.cmake
r7415 r8071 32 32 # RUNTIME_LIBRARY_DIRECTORY - Working directory 33 33 # 34 35 # Workaround for XCode: The folder where the bind files are written to has 36 # to be present beforehand. 37 # We have to do this here because the header files are all stored in a single 38 # location per configuration. 39 IF(CMAKE_CONFIGURATION_TYPES) 40 FOREACH(_dir ${CMAKE_CONFIGURATION_TYPES}) 41 FILE(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/src/toluabind/${_dir}") 42 ENDFOREACH(_dir) 43 ENDIF() 34 44 35 45 FUNCTION(GENERATE_TOLUA_BINDINGS _tolua_package _target_source_files) -
code/branches/kicklib/cmake/tools/TargetUtilities.cmake
r8057 r8071 169 169 GENERATE_TOLUA_BINDINGS(${_target_name_capitalised} _${_target_name}_files 170 170 INPUTFILES ${_arg_TOLUA_FILES}) 171 # Workaround for XCode: The folder where the bind files are written to has 172 # to be present beforehand. 173 IF(CMAKE_CONFIGURATION_TYPES) 174 FOREACH(_dir ${CMAKE_CONFIGURATION_TYPES}) 175 FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_dir}) 176 ENDFOREACH(_dir) 177 ENDIF() 171 178 ENDIF() 172 179
Note: See TracChangeset
for help on using the changeset viewer.