1# Main variables: 2# IPP_A_LIBRARIES and IPP_A_INCLUDE to use IPP Async 3# HAVE_IPP_A for conditional compilation OpenCV with/without IPP Async 4 5# IPP_ASYNC_ROOT - root of IPP Async installation 6 7if(X86_64) 8 find_path( 9 IPP_A_INCLUDE_DIR 10 NAMES ipp_async_defs.h 11 PATHS $ENV{IPP_ASYNC_ROOT} 12 PATH_SUFFIXES include 13 DOC "Path to Intel IPP Async interface headers") 14 15 find_file( 16 IPP_A_LIBRARIES 17 NAMES ipp_async_preview.lib 18 PATHS $ENV{IPP_ASYNC_ROOT} 19 PATH_SUFFIXES lib/intel64 20 DOC "Path to Intel IPP Async interface libraries") 21 22else() 23 find_path( 24 IPP_A_INCLUDE_DIR 25 NAMES ipp_async_defs.h 26 PATHS $ENV{IPP_ASYNC_ROOT} 27 PATH_SUFFIXES include 28 DOC "Path to Intel IPP Async interface headers") 29 30 find_file( 31 IPP_A_LIBRARIES 32 NAMES ipp_async_preview.lib 33 PATHS $ENV{IPP_ASYNC_ROOT} 34 PATH_SUFFIXES lib/ia32 35 DOC "Path to Intel IPP Async interface libraries") 36endif() 37 38if(IPP_A_INCLUDE_DIR AND IPP_A_LIBRARIES) 39 set(HAVE_IPP_A TRUE) 40else() 41 set(HAVE_IPP_A FALSE) 42 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.") 43endif() 44 45mark_as_advanced(FORCE IPP_A_LIBRARIES IPP_A_INCLUDE_DIR)