mirror of https://github.com/opencv/opencv.git
parent
e1ba4399e8
commit
901e1e4608
6 changed files with 50 additions and 32 deletions
@ -1,9 +1,18 @@ |
||||
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR) |
||||
|
||||
add_library(c_hal impl.c) |
||||
set_target_properties(c_hal PROPERTIES POSITION_INDEPENDENT_CODE TRUE) |
||||
set(PROJECT_NAME "c_hal") |
||||
set(HAL_LIB_NAME "c_hal") |
||||
|
||||
add_library(${HAL_LIB_NAME} impl.c) |
||||
set_target_properties(${HAL_LIB_NAME} PROPERTIES POSITION_INDEPENDENT_CODE TRUE) |
||||
set(OPENCV_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../..") |
||||
target_include_directories(c_hal PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${OPENCV_SRC_DIR}/modules/core/include) |
||||
target_include_directories(${HAL_LIB_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${OPENCV_SRC_DIR}/modules/core/include) |
||||
|
||||
set(OpenCV_HAL_FOUND TRUE) |
||||
set(OpenCV_HAL_VERSION 0.0.1) |
||||
set(OpenCV_HAL_LIBRARIES ${CMAKE_CURRENT_BINARY_DIR}/lib${HAL_LIB_NAME}.a) |
||||
set(OpenCV_HAL_HEADERS "impl.h") |
||||
set(OpenCV_HAL_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}) |
||||
|
||||
configure_file("impl.h" "${CMAKE_BINARY_DIR}/impl.h" COPYONLY) |
||||
configure_file("config.cmake" "${CMAKE_BINARY_DIR}/OpenCV_HALConfig.cmake" COPYONLY) |
||||
configure_file("config.cmake" "${CMAKE_BINARY_DIR}/OpenCV_HALConfig.cmake") |
||||
|
@ -1,5 +1,5 @@ |
||||
set(OpenCV_HAL_FOUND TRUE) |
||||
set(OpenCV_HAL_VERSION "0.0.1") |
||||
set(OpenCV_HAL_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/libc_hal.a") |
||||
set(OpenCV_HAL_HEADERS "impl.h") |
||||
set(OpenCV_HAL_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}") |
||||
set(OpenCV_HAL_FOUND @OpenCV_HAL_FOUND@) |
||||
set(OpenCV_HAL_VERSION @OpenCV_HAL_VERSION@) |
||||
set(OpenCV_HAL_LIBRARIES @OpenCV_HAL_LIBRARIES@) |
||||
set(OpenCV_HAL_HEADERS @OpenCV_HAL_HEADERS@) |
||||
set(OpenCV_HAL_INCLUDE_DIRS @OpenCV_HAL_INCLUDE_DIRS@) |
||||
|
@ -1,9 +1,18 @@ |
||||
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR) |
||||
|
||||
add_library(slow_hal impl.cpp) |
||||
set_target_properties(slow_hal PROPERTIES POSITION_INDEPENDENT_CODE TRUE) |
||||
set(PROJECT_NAME "slow_hal") |
||||
set(HAL_LIB_NAME "slow_hal") |
||||
|
||||
add_library(${HAL_LIB_NAME} impl.cpp) |
||||
set_target_properties(${HAL_LIB_NAME} PROPERTIES POSITION_INDEPENDENT_CODE TRUE) |
||||
set(OPENCV_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../..") |
||||
target_include_directories(slow_hal PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${OPENCV_SRC_DIR}/modules/core/include) |
||||
target_include_directories(${HAL_LIB_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${OPENCV_SRC_DIR}/modules/core/include) |
||||
|
||||
set(OpenCV_HAL_FOUND TRUE) |
||||
set(OpenCV_HAL_VERSION 0.0.1) |
||||
set(OpenCV_HAL_LIBRARIES ${CMAKE_CURRENT_BINARY_DIR}/lib${HAL_LIB_NAME}.a) |
||||
set(OpenCV_HAL_HEADERS "impl.hpp") |
||||
set(OpenCV_HAL_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}) |
||||
|
||||
configure_file("impl.hpp" "${CMAKE_BINARY_DIR}/impl.hpp" COPYONLY) |
||||
configure_file("config.cmake" "${CMAKE_BINARY_DIR}/OpenCV_HALConfig.cmake" COPYONLY) |
||||
configure_file("config.cmake" "${CMAKE_BINARY_DIR}/OpenCV_HALConfig.cmake") |
||||
|
@ -1,5 +1,5 @@ |
||||
set(OpenCV_HAL_FOUND TRUE) |
||||
set(OpenCV_HAL_VERSION "0.0.1") |
||||
set(OpenCV_HAL_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/libslow_hal.a") |
||||
set(OpenCV_HAL_HEADERS "impl.hpp") |
||||
set(OpenCV_HAL_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}") |
||||
set(OpenCV_HAL_FOUND @OpenCV_HAL_FOUND@) |
||||
set(OpenCV_HAL_VERSION @OpenCV_HAL_VERSION@) |
||||
set(OpenCV_HAL_LIBRARIES @OpenCV_HAL_LIBRARIES@) |
||||
set(OpenCV_HAL_HEADERS @OpenCV_HAL_HEADERS@) |
||||
set(OpenCV_HAL_INCLUDE_DIRS @OpenCV_HAL_INCLUDE_DIRS@) |
||||
|
Loading…
Reference in new issue