mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Sevral fixes for FastCV handling.
This commit is contained in:
parent
96d6395a6d
commit
745a12c03b
2
3rdparty/fastcv/CMakeLists.txt
vendored
2
3rdparty/fastcv/CMakeLists.txt
vendored
|
|
@ -24,8 +24,6 @@ if(HAVE_FASTCV)
|
||||||
ocv_install_target(fastcv_hal EXPORT OpenCVModules ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev)
|
ocv_install_target(fastcv_hal EXPORT OpenCVModules ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ocv_install_3rdparty_licenses(FastCV "${OpenCV_BINARY_DIR}/3rdparty/fastcv/LICENSE")
|
|
||||||
|
|
||||||
if(ENABLE_SOLUTION_FOLDERS)
|
if(ENABLE_SOLUTION_FOLDERS)
|
||||||
set_target_properties(fastcv_hal PROPERTIES FOLDER "3rdparty")
|
set_target_properties(fastcv_hal PROPERTIES FOLDER "3rdparty")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -180,19 +180,23 @@ endif(WITH_KLEIDICV)
|
||||||
# --- FastCV ---
|
# --- FastCV ---
|
||||||
if(WITH_FASTCV)
|
if(WITH_FASTCV)
|
||||||
if((EXISTS ${FastCV_INCLUDE_PATH}) AND (EXISTS ${FastCV_LIB_PATH}))
|
if((EXISTS ${FastCV_INCLUDE_PATH}) AND (EXISTS ${FastCV_LIB_PATH}))
|
||||||
|
message(STATUS "Use external FastCV ${FastCV_INCLUDE_PATH}, ${FastCV_LIB_PATH}")
|
||||||
set(HAVE_FASTCV TRUE CACHE BOOL "FastCV status")
|
set(HAVE_FASTCV TRUE CACHE BOOL "FastCV status")
|
||||||
else()
|
else()
|
||||||
include("${OpenCV_SOURCE_DIR}/3rdparty/fastcv/fastcv.cmake")
|
include("${OpenCV_SOURCE_DIR}/3rdparty/fastcv/fastcv.cmake")
|
||||||
set(FCV_ROOT_DIR "${OpenCV_BINARY_DIR}/3rdparty/fastcv")
|
set(FCV_ROOT_DIR "${OpenCV_BINARY_DIR}/3rdparty/fastcv")
|
||||||
download_fastcv(${FCV_ROOT_DIR})
|
download_fastcv(${FCV_ROOT_DIR})
|
||||||
if (HAVE_FASTCV)
|
if(HAVE_FASTCV)
|
||||||
set(FastCV_INCLUDE_PATH "${FCV_ROOT_DIR}/inc" CACHE PATH "FastCV includes directory")
|
set(FastCV_INCLUDE_PATH "${FCV_ROOT_DIR}/inc" CACHE PATH "FastCV includes directory")
|
||||||
set(FastCV_LIB_PATH "${FCV_ROOT_DIR}/libs" CACHE PATH "FastCV library directory")
|
set(FastCV_LIB_PATH "${FCV_ROOT_DIR}/libs" CACHE PATH "FastCV library directory")
|
||||||
|
ocv_install_3rdparty_licenses(FastCV "${OpenCV_BINARY_DIR}/3rdparty/fastcv/LICENSE")
|
||||||
|
install(FILES "${FastCV_LIB_PATH}/libfastcvopt.so"
|
||||||
|
DESTINATION "${OPENCV_LIB_INSTALL_PATH}" COMPONENT "bin")
|
||||||
else()
|
else()
|
||||||
set(HAVE_FASTCV FALSE CACHE BOOL "FastCV status")
|
set(HAVE_FASTCV FALSE CACHE BOOL "FastCV status")
|
||||||
endif()
|
endif()
|
||||||
if (HAVE_FASTCV)
|
endif()
|
||||||
set(FASTCV_LIBRARY "${FastCV_LIB_PATH}/libfastcvopt.so" CACHE PATH "FastCV library")
|
if(HAVE_FASTCV)
|
||||||
endif()
|
set(FASTCV_LIBRARY "${FastCV_LIB_PATH}/libfastcvopt.so" CACHE PATH "FastCV library")
|
||||||
endif()
|
endif()
|
||||||
endif(WITH_FASTCV)
|
endif(WITH_FASTCV)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user