mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
Simplify cmake and add openvino directory (#285)
* simplify the opencv.cmake * Add OPENVINO_DIRECTORY option * Add openvino directory
This commit is contained in:
@@ -29,10 +29,10 @@ endfunction()
|
||||
|
||||
function(get_openvino_libs OPENVINO_RUNTIME_DIR)
|
||||
set(LIB_LIST "")
|
||||
find_library(OPENVINO_LIB openvino ${OPENVINO_RUNTIME_DIR}/lib/ NO_DEFAULT_PATH)
|
||||
find_library(OPENVINO_LIB openvino PATHS ${OPENVINO_RUNTIME_DIR}/lib/ ${OPENVINO_RUNTIME_DIR}/lib/intel64 NO_DEFAULT_PATH)
|
||||
list(APPEND LIB_LIST ${OPENVINO_LIB})
|
||||
|
||||
find_package(TBB PATHS "${OPENVINO_RUNTIME_DIR}/3rdparty/tbb")
|
||||
find_package(TBB PATHS ${OPENVINO_RUNTIME_DIR}/3rdparty/tbb)
|
||||
if (TBB_FOUND)
|
||||
list(APPEND LIB_LIST ${TBB_IMPORTED_TARGETS})
|
||||
else()
|
||||
|
Reference in New Issue
Block a user