File: OpenCVFindIPPAsync.cmake

package info (click to toggle)
opencv 3.2.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 238,480 kB
  • sloc: xml: 901,650; cpp: 703,419; lisp: 20,142; java: 17,843; python: 17,641; ansic: 603; cs: 601; sh: 516; perl: 494; makefile: 117
file content (45 lines) | stat: -rw-r--r-- 1,253 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Main variables:
# IPP_A_LIBRARIES and IPP_A_INCLUDE to use IPP Async
# HAVE_IPP_A for conditional compilation OpenCV with/without IPP Async

# IPP_ASYNC_ROOT - root of IPP Async installation

if(X86_64)
    find_path(
    IPP_A_INCLUDE_DIR
    NAMES ipp_async_defs.h
    PATHS $ENV{IPP_ASYNC_ROOT}
    PATH_SUFFIXES include
    DOC "Path to Intel IPP Async interface headers")

    find_file(
    IPP_A_LIBRARIES
    NAMES ipp_async_preview.lib
    PATHS $ENV{IPP_ASYNC_ROOT}
    PATH_SUFFIXES lib/intel64
    DOC "Path to Intel IPP Async interface libraries")

else()
    find_path(
    IPP_A_INCLUDE_DIR
    NAMES ipp_async_defs.h
    PATHS $ENV{IPP_ASYNC_ROOT}
    PATH_SUFFIXES include
    DOC "Path to Intel IPP Async interface headers")

    find_file(
    IPP_A_LIBRARIES
    NAMES ipp_async_preview.lib
    PATHS $ENV{IPP_ASYNC_ROOT}
    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)