|
|
|
@ -274,8 +274,6 @@ endif() |
|
|
|
|
|
|
|
|
|
if(ANDROID OR WIN32) |
|
|
|
|
set(OPENCV_DOC_INSTALL_PATH doc) |
|
|
|
|
elseif(INSTALL_TO_MANGLED_PATHS) |
|
|
|
|
set(OPENCV_DOC_INSTALL_PATH share/OpenCV-${OPENCV_VERSION}/doc) |
|
|
|
|
else() |
|
|
|
|
set(OPENCV_DOC_INSTALL_PATH share/OpenCV/doc) |
|
|
|
|
endif() |
|
|
|
@ -309,6 +307,10 @@ if(NOT OPENCV_TEST_INSTALL_PATH) |
|
|
|
|
set(OPENCV_TEST_INSTALL_PATH "${OPENCV_BIN_INSTALL_PATH}") |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if (OPENCV_TEST_DATA_PATH) |
|
|
|
|
get_filename_component(OPENCV_TEST_DATA_PATH ${OPENCV_TEST_DATA_PATH} ABSOLUTE) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(OPENCV_TEST_DATA_PATH AND NOT OPENCV_TEST_DATA_INSTALL_PATH) |
|
|
|
|
if(ANDROID) |
|
|
|
|
set(OPENCV_TEST_DATA_INSTALL_PATH "sdk/etc/testdata") |
|
|
|
@ -327,9 +329,11 @@ if(ANDROID) |
|
|
|
|
set(OPENCV_CONFIG_INSTALL_PATH sdk/native/jni) |
|
|
|
|
set(OPENCV_INCLUDE_INSTALL_PATH sdk/native/jni/include) |
|
|
|
|
set(OPENCV_SAMPLES_SRC_INSTALL_PATH samples/native) |
|
|
|
|
set(OPENCV_OTHER_INSTALL_PATH sdk/etc) |
|
|
|
|
else() |
|
|
|
|
set(LIBRARY_OUTPUT_PATH "${OpenCV_BINARY_DIR}/lib") |
|
|
|
|
set(3P_LIBRARY_OUTPUT_PATH "${OpenCV_BINARY_DIR}/3rdparty/lib${LIB_SUFFIX}") |
|
|
|
|
|
|
|
|
|
if(WIN32 AND CMAKE_HOST_SYSTEM_NAME MATCHES Windows) |
|
|
|
|
if(OpenCV_STATIC) |
|
|
|
|
set(OPENCV_LIB_INSTALL_PATH "${OpenCV_INSTALL_BINARIES_PREFIX}staticlib${LIB_SUFFIX}") |
|
|
|
@ -338,10 +342,14 @@ else() |
|
|
|
|
endif() |
|
|
|
|
set(OPENCV_3P_LIB_INSTALL_PATH "${OpenCV_INSTALL_BINARIES_PREFIX}staticlib${LIB_SUFFIX}") |
|
|
|
|
set(OPENCV_SAMPLES_SRC_INSTALL_PATH samples/native) |
|
|
|
|
set(OPENCV_JAR_INSTALL_PATH java) |
|
|
|
|
set(OPENCV_OTHER_INSTALL_PATH etc) |
|
|
|
|
else() |
|
|
|
|
set(OPENCV_LIB_INSTALL_PATH lib${LIB_SUFFIX}) |
|
|
|
|
set(OPENCV_3P_LIB_INSTALL_PATH share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH}) |
|
|
|
|
set(OPENCV_SAMPLES_SRC_INSTALL_PATH share/OpenCV/samples) |
|
|
|
|
set(OPENCV_JAR_INSTALL_PATH share/OpenCV/java) |
|
|
|
|
set(OPENCV_OTHER_INSTALL_PATH share/OpenCV) |
|
|
|
|
endif() |
|
|
|
|
set(OPENCV_INCLUDE_INSTALL_PATH "include") |
|
|
|
|
|
|
|
|
@ -358,8 +366,16 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) |
|
|
|
|
|
|
|
|
|
if(INSTALL_TO_MANGLED_PATHS) |
|
|
|
|
set(OPENCV_INCLUDE_INSTALL_PATH ${OPENCV_INCLUDE_INSTALL_PATH}/opencv-${OPENCV_VERSION}) |
|
|
|
|
string(REPLACE "OpenCV" "OpenCV-${OPENCV_VERSION}" OPENCV_3P_LIB_INSTALL_PATH "${OPENCV_3P_LIB_INSTALL_PATH}") |
|
|
|
|
string(REPLACE "OpenCV" "OpenCV-${OPENCV_VERSION}" OPENCV_SAMPLES_SRC_INSTALL_PATH "${OPENCV_SAMPLES_SRC_INSTALL_PATH}") |
|
|
|
|
string(REPLACE "OpenCV" "OpenCV-${OPENCV_VERSION}" OPENCV_CONFIG_INSTALL_PATH "${OPENCV_CONFIG_INSTALL_PATH}") |
|
|
|
|
string(REPLACE "OpenCV" "OpenCV-${OPENCV_VERSION}" OPENCV_DOC_INSTALL_PATH "${OPENCV_DOC_INSTALL_PATH}") |
|
|
|
|
string(REPLACE "OpenCV" "OpenCV-${OPENCV_VERSION}" OPENCV_JAR_INSTALL_PATH "${OPENCV_JAR_INSTALL_PATH}") |
|
|
|
|
string(REPLACE "OpenCV" "OpenCV-${OPENCV_VERSION}" OPENCV_TEST_DATA_INSTALL_PATH "${OPENCV_TEST_DATA_INSTALL_PATH}") |
|
|
|
|
string(REPLACE "OpenCV" "OpenCV-${OPENCV_VERSION}" OPENCV_OTHER_INSTALL_PATH "${OPENCV_OTHER_INSTALL_PATH}") |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(WIN32) |
|
|
|
|
# Postfix of DLLs: |
|
|
|
|
set(OPENCV_DLLVERSION "${OPENCV_VERSION_MAJOR}${OPENCV_VERSION_MINOR}${OPENCV_VERSION_PATCH}") |
|
|
|
|