2016-07-04 20:37:04 +08:00
|
|
|
# Locate AAX
|
|
|
|
# This module defines
|
|
|
|
# AAX_LIBRARIES
|
|
|
|
# AAX_FOUND, if false, do not try to link to AAX
|
|
|
|
# AAX_INCLUDE_DIR, where to find the headers
|
|
|
|
#
|
|
|
|
# $AAXDIR is an environment variable that would
|
|
|
|
# correspond to the ./configure --prefix=$AAXDIR
|
|
|
|
# used in building AAX.
|
|
|
|
#
|
|
|
|
# Created by Erik Hofman.
|
|
|
|
|
2017-10-31 17:42:44 +08:00
|
|
|
FIND_PATH(AAX_INCLUDE_DIR aax/aax.h
|
2016-07-04 20:37:04 +08:00
|
|
|
HINTS
|
|
|
|
$ENV{AAXDIR}
|
|
|
|
$ENV{ProgramFiles}/aax
|
|
|
|
$ENV{ProgramFiles}/AeonWave
|
|
|
|
$ENV{ProgramFiles}/Adalin/AeonWave
|
2017-10-31 17:42:44 +08:00
|
|
|
${CMAKE_SOURCE_DIR}/aax
|
2016-07-04 20:37:04 +08:00
|
|
|
PATH_SUFFIXES include
|
|
|
|
PATHS
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/usr/local
|
|
|
|
/usr
|
|
|
|
/opt
|
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(AAX_LIBRARY
|
2017-10-31 17:42:44 +08:00
|
|
|
NAMES AAX aax AAX32
|
2016-07-04 20:37:04 +08:00
|
|
|
HINTS
|
|
|
|
$ENV{AAXDIR}
|
|
|
|
$ENV{ProgramFiles}/AAX
|
|
|
|
$ENV{ProgramFiles}/AeonWave
|
|
|
|
$ENV{ProgramFiles}/Adalin/AeonWave
|
2017-10-31 17:42:44 +08:00
|
|
|
${CMAKE_BUILD_DIR}/aax
|
2016-07-04 20:37:04 +08:00
|
|
|
PATH_SUFFIXES bin lib lib/${CMAKE_LIBRARY_ARCHITECTURE} lib64 libs64 libs libs/Win32 libs/Win64
|
|
|
|
PATHS
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
2017-10-31 17:42:44 +08:00
|
|
|
/usr/local
|
2016-07-04 20:37:04 +08:00
|
|
|
/usr
|
|
|
|
/opt
|
|
|
|
)
|
|
|
|
|
|
|
|
IF(AAX_LIBRARY AND AAX_INCLUDE_DIR)
|
|
|
|
SET(AAX_FOUND "YES")
|
2017-10-31 17:42:44 +08:00
|
|
|
ELSE(AAX_LIBRARY AND AAX_INCLUDE_DIR)
|
|
|
|
IF(NOT AAX_INCLUDE_DIR)
|
|
|
|
MESSAGE(FATAL_ERROR "Unable to find the AAX library development files.")
|
|
|
|
SET(AAX_FOUND "NO")
|
|
|
|
ENDIF(NOT AAX_INCLUDE_DIR)
|
|
|
|
IF(NOT AAX_LIBRARY)
|
|
|
|
IF(SINGLE_PACKAGE)
|
|
|
|
SET(AAX_LIBRARY "${aax_BUILD_DIR}/aax/AAX32.dll")
|
|
|
|
SET(AAX_FOUND "YES")
|
|
|
|
ELSE(SINGLE_PACKAGE)
|
|
|
|
ENDIF(SINGLE_PACKAGE)
|
|
|
|
ENDIF(NOT AAX_LIBRARY)
|
2016-07-04 20:37:04 +08:00
|
|
|
ENDIF(AAX_LIBRARY AND AAX_INCLUDE_DIR)
|
|
|
|
|