1 # Copyright (C) 2018-2019 Intel Corporation
3 # SPDX-License-Identifier: Apache-2.0
6 #module to locate GNA libraries
9 set(GNA_PLATFORM_DIR win64)
13 set(GNA_PLATFORM_DIR linux)
16 set(GNA_KERNEL_LIB gna_kernel)
18 message(FATAL_ERROR "GNA not supported on this platform, only linux, and windows")
21 find_library(GNA_API_LIBRARY
24 ${GNA}/${GNA_PLATFORM_DIR}/${GNA_LIB_DIR})
26 set(libGNA_INCLUDE_DIRS ${GNA}/${GNA_PLATFORM_DIR}/include)
27 set(libGNA_LIBRARY ${GNA_API_LIBRARY})
30 #message("Searching for libgna_kernel.so in: ${GNA}/${GNA_PLATFORM_DIR}/${GNA_KERNEL_LIB}")
31 find_library(GNA_KERNEL_LIBRARY
34 ${GNA}/${GNA_PLATFORM_DIR}/${GNA_LIB_DIR})
37 set(libGNA_LIBRARIES ${libGNA_LIBRARY} ${GNA_KERNEL_LIBRARY})