Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 8, 2009, 9:37:41 PM (16 years ago)
Author:
rgrieder
Message:
  • Equipped find scripts with debug/optimized functions. If you have different debug prefixes on your platform simply change ${LIBRARY_DEBUG_POSTFIX} ("_d" default).
  • Clean up in ConfigMSVC.cmake and ConfigMinGW.cmake
  • Also had a good look at the MinGW libraries according to the libs_1889_mingw.zip (no warranty at all, hope I got them all)
  • INSTALL commands are currently limited to non Windows platforms (don't yet know why it doesn't work)
File:
1 edited

Legend:

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

    r2509 r2579  
    2121#                 > www.orxonox.net <
    2222
     23SET(ALUT_PATHS
     24  $ENV{ALUTDIR}
     25  /usr/local
     26  /usr
     27  /sw        # Fink
     28  /opt/local # DarwinPorts
     29  /opt/csw   # Blastwave
     30  /opt
     31)
     32
    2333FIND_PATH(ALUT_INCLUDE_DIR AL/alut.h
    2434  PATHS
    25   $ENV{ALUTDIR}
     35  ${ALUT_PATHS}
    2636  ~/Library/Frameworks/OpenAL.framework
    2737  /Library/Frameworks/OpenAL.framework
    2838  /System/Library/Frameworks/OpenAL.framework # Tiger
    29   /usr/local
    30   /usr
    31   /sw # Fink
    32   /opt/local # DarwinPorts
    33   /opt/csw # Blastwave
    34   /opt
    3539  PATH_SUFFIXES include include/OpenAL include/AL Headers
    36   )
     40)
    3741
    3842# I'm not sure if I should do a special casing for Apple. It is
     
    4145# do they want the -framework option also?
    4246IF(${ALUT_INCLUDE_DIR} MATCHES ".framework")
     47
    4348  STRING(REGEX REPLACE "(.*)/.*\\.framework/.*" "\\1" ALUT_FRAMEWORK_PATH_TMP ${ALUT_INCLUDE_DIR})
    4449  IF("${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/Library/Frameworks"
     
    4651      )
    4752    # String is in default search path, don't need to use -F
    48     SET (ALUT_LIBRARY "-framework OpenAL" CACHE STRING "OpenAL framework for OSX")
     53    SET (ALUT_LIBRARY_OPTIMIZED "-framework OpenAL" CACHE STRING "OpenAL framework for OSX")
    4954  ELSE("${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/Library/Frameworks"
    5055      OR "${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/System/Library/Frameworks"
    5156      )
    5257    # String is not /Library/Frameworks, need to use -F
    53     SET(ALUT_LIBRARY "-F${ALUT_FRAMEWORK_PATH_TMP} -framework OpenAL" CACHE STRING "OpenAL framework for OSX")
     58    SET(ALUT_LIBRARY_OPTIMIZED "-F${ALUT_FRAMEWORK_PATH_TMP} -framework OpenAL" CACHE STRING "OpenAL framework for OSX")
    5459  ENDIF("${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/Library/Frameworks"
    5560    OR "${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/System/Library/Frameworks"
     
    5964
    6065ELSE(${ALUT_INCLUDE_DIR} MATCHES ".framework")
    61   FIND_LIBRARY(ALUT_LIBRARY
     66  FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED
    6267    NAMES alut
    63     PATHS
    64     $ENV{ALUTDIR}
    65     /usr/local
    66     /usr
    67     /sw
    68     /opt/local
    69     /opt/csw
    70     /opt
     68    PATHS ${ALUT_PATHS}
    7169    PATH_SUFFIXES lib libs
    72     )
     70  )
     71  FIND_LIBRARY(ALUT_LIBRARY_DEBUG
     72    NAMES alut_${LIBRARY_DEBUG_POSTFIX}
     73    PATHS ${ALUT_PATHS}
     74    PATH_SUFFIXES lib libs
     75  )
    7376ENDIF(${ALUT_INCLUDE_DIR} MATCHES ".framework")
    7477
    7578# handle the QUIETLY and REQUIRED arguments and set ALUT_FOUND to TRUE if
    7679# all listed variables are TRUE
    77 INCLUDE(FindPackageHandleStandardArgs)
    78 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG ALUT_LIBRARY ALUT_INCLUDE_DIR)
     80FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG
     81    ALUT_LIBRARY_OPTIMIZED
     82    ALUT_INCLUDE_DIR
     83)
    7984
    80 MARK_AS_ADVANCED(ALUT_LIBRARY ALUT_INCLUDE_DIR)
     85# Set optimized and debug libraries
     86HandleLibraryTypes(ALUT)
     87
     88MARK_AS_ADVANCED(
     89    ALUT_LIBRARY
     90    ALUT_LIBRARY_OPTIMIZED
     91    ALUT_LIBRARY_DEBUG
     92    ALUT_INCLUDE_DIR
     93)
Note: See TracChangeset for help on using the changeset viewer.