mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
19c4d97638
Extract all HALs from 3rdparty to dedicated folder. #27252 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [ ] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
35 lines
1.3 KiB
CMake
35 lines
1.3 KiB
CMake
message(STATUS "##########")
|
|
message(STATUS "# NDSRVP #")
|
|
message(STATUS "##########")
|
|
|
|
cmake_minimum_required(VERSION ${MIN_VER_CMAKE} FATAL_ERROR)
|
|
|
|
# project setup
|
|
|
|
set(NDSRVP_INCLUDE_DIR include)
|
|
set(NDSRVP_SOURCE_DIR src)
|
|
|
|
file(GLOB ndsrvp_headers RELATIVE "${CMAKE_CURRENT_LIST_DIR}" "${NDSRVP_INCLUDE_DIR}/*.hpp")
|
|
file(GLOB ndsrvp_sources RELATIVE "${CMAKE_CURRENT_LIST_DIR}" "${NDSRVP_SOURCE_DIR}/*.cpp")
|
|
|
|
add_library(ndsrvp_hal STATIC)
|
|
target_sources(ndsrvp_hal PRIVATE ${ndsrvp_headers} ${ndsrvp_sources})
|
|
|
|
set_target_properties(ndsrvp_hal PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${3P_LIBRARY_OUTPUT_PATH})
|
|
if(NOT BUILD_SHARED_LIBS)
|
|
ocv_install_target(ndsrvp_hal EXPORT OpenCVModules ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev)
|
|
endif()
|
|
target_include_directories(ndsrvp_hal PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/modules/core/include
|
|
${CMAKE_SOURCE_DIR}/modules/imgproc/include
|
|
${CMAKE_SOURCE_DIR}/modules/features2d/include)
|
|
|
|
# project info
|
|
|
|
set(NDSRVP_HAL_FOUND TRUE CACHE INTERNAL "")
|
|
set(NDSRVP_HAL_VERSION "0.0.1" CACHE INTERNAL "")
|
|
set(NDSRVP_HAL_LIBRARIES "ndsrvp_hal" CACHE INTERNAL "")
|
|
set(NDSRVP_HAL_HEADERS "ndsrvp_hal.hpp" CACHE INTERNAL "")
|
|
set(NDSRVP_HAL_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}" CACHE INTERNAL "")
|