|
|
|
@ -23,15 +23,15 @@ if(ANDROID) |
|
|
|
|
elseif(WIN32 AND CMAKE_HOST_SYSTEM_NAME MATCHES Windows) |
|
|
|
|
|
|
|
|
|
if(DEFINED OpenCV_RUNTIME AND DEFINED OpenCV_ARCH) |
|
|
|
|
set(_prefix "${OpenCV_ARCH}/${OpenCV_RUNTIME}/") |
|
|
|
|
ocv_update(OPENCV_INSTALL_BINARIES_PREFIX "${OpenCV_ARCH}/${OpenCV_RUNTIME}/") |
|
|
|
|
else() |
|
|
|
|
message(STATUS "Can't detect runtime and/or arch") |
|
|
|
|
set(_prefix "") |
|
|
|
|
ocv_update(OPENCV_INSTALL_BINARIES_PREFIX "") |
|
|
|
|
endif() |
|
|
|
|
if(OpenCV_STATIC) |
|
|
|
|
set(_suffix "staticlib") |
|
|
|
|
ocv_update(OPENCV_INSTALL_BINARIES_SUFFIX "staticlib") |
|
|
|
|
else() |
|
|
|
|
set(_suffix "lib") |
|
|
|
|
ocv_update(OPENCV_INSTALL_BINARIES_SUFFIX "lib") |
|
|
|
|
endif() |
|
|
|
|
if(INSTALL_CREATE_DISTRIB) |
|
|
|
|
set(_jni_suffix "/${OpenCV_ARCH}") |
|
|
|
@ -39,12 +39,12 @@ elseif(WIN32 AND CMAKE_HOST_SYSTEM_NAME MATCHES Windows) |
|
|
|
|
set(_jni_suffix "") |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
ocv_update(OPENCV_BIN_INSTALL_PATH "${_prefix}bin") |
|
|
|
|
ocv_update(OPENCV_BIN_INSTALL_PATH "${OPENCV_INSTALL_BINARIES_PREFIX}bin") |
|
|
|
|
ocv_update(OPENCV_TEST_INSTALL_PATH "${OPENCV_BIN_INSTALL_PATH}") |
|
|
|
|
ocv_update(OPENCV_SAMPLES_BIN_INSTALL_PATH "${_prefix}samples") |
|
|
|
|
ocv_update(OPENCV_LIB_INSTALL_PATH "${_prefix}${_suffix}") |
|
|
|
|
ocv_update(OPENCV_SAMPLES_BIN_INSTALL_PATH "${OPENCV_INSTALL_BINARIES_PREFIX}samples") |
|
|
|
|
ocv_update(OPENCV_LIB_INSTALL_PATH "${OPENCV_INSTALL_BINARIES_PREFIX}${OPENCV_INSTALL_BINARIES_SUFFIX}") |
|
|
|
|
ocv_update(OPENCV_LIB_ARCHIVE_INSTALL_PATH "${OPENCV_LIB_INSTALL_PATH}") |
|
|
|
|
ocv_update(OPENCV_3P_LIB_INSTALL_PATH "${_prefix}staticlib") |
|
|
|
|
ocv_update(OPENCV_3P_LIB_INSTALL_PATH "${OPENCV_INSTALL_BINARIES_PREFIX}staticlib") |
|
|
|
|
ocv_update(OPENCV_CONFIG_INSTALL_PATH ".") |
|
|
|
|
ocv_update(OPENCV_INCLUDE_INSTALL_PATH "include") |
|
|
|
|
ocv_update(OPENCV_OTHER_INSTALL_PATH "etc") |
|
|
|
|