2014-02-24 14:44:54 +08:00
|
|
|
# Main variables:
|
|
|
|
# IPP_A_LIBRARIES and IPP_A_INCLUDE to use IPP Async
|
|
|
|
# HAVE_IPP_A for conditional compilation OpenCV with/without IPP Async
|
|
|
|
|
2014-03-27 21:40:50 +08:00
|
|
|
# IPP_ASYNC_ROOT - root of IPP Async installation
|
2014-02-24 14:44:54 +08:00
|
|
|
|
|
|
|
if(X86_64)
|
|
|
|
find_path(
|
|
|
|
IPP_A_INCLUDE_DIR
|
|
|
|
NAMES ipp_async_defs.h
|
2014-03-27 21:40:50 +08:00
|
|
|
PATHS $ENV{IPP_ASYNC_ROOT}
|
2014-02-24 14:44:54 +08:00
|
|
|
PATH_SUFFIXES include
|
|
|
|
DOC "Path to Intel IPP Async interface headers")
|
2014-03-27 21:40:50 +08:00
|
|
|
|
2014-02-24 14:44:54 +08:00
|
|
|
find_file(
|
|
|
|
IPP_A_LIBRARIES
|
|
|
|
NAMES ipp_async_preview.lib
|
2014-03-27 21:40:50 +08:00
|
|
|
PATHS $ENV{IPP_ASYNC_ROOT}
|
2014-02-24 14:44:54 +08:00
|
|
|
PATH_SUFFIXES lib/intel64
|
|
|
|
DOC "Path to Intel IPP Async interface libraries")
|
2014-03-27 21:40:50 +08:00
|
|
|
|
2014-02-24 14:44:54 +08:00
|
|
|
else()
|
|
|
|
find_path(
|
|
|
|
IPP_A_INCLUDE_DIR
|
|
|
|
NAMES ipp_async_defs.h
|
2014-03-27 21:40:50 +08:00
|
|
|
PATHS $ENV{IPP_ASYNC_ROOT}
|
2014-02-24 14:44:54 +08:00
|
|
|
PATH_SUFFIXES include
|
|
|
|
DOC "Path to Intel IPP Async interface headers")
|
2014-03-27 21:40:50 +08:00
|
|
|
|
2014-02-24 14:44:54 +08:00
|
|
|
find_file(
|
|
|
|
IPP_A_LIBRARIES
|
|
|
|
NAMES ipp_async_preview.lib
|
2014-03-27 21:40:50 +08:00
|
|
|
PATHS $ENV{IPP_ASYNC_ROOT}
|
2014-02-24 14:44:54 +08:00
|
|
|
PATH_SUFFIXES lib/ia32
|
|
|
|
DOC "Path to Intel IPP Async interface libraries")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(IPP_A_INCLUDE_DIR AND IPP_A_LIBRARIES)
|
|
|
|
set(HAVE_IPP_A TRUE)
|
|
|
|
else()
|
|
|
|
set(HAVE_IPP_A FALSE)
|
|
|
|
message(WARNING "Intel IPP Async library directory (set by IPP_A_LIBRARIES_DIR variable) is not found or does not have Intel IPP Async libraries.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
mark_as_advanced(FORCE IPP_A_LIBRARIES IPP_A_INCLUDE_DIR)
|