File tree Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Expand file tree Collapse file tree 5 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -84,4 +84,4 @@ if(NOT BUILD_SHARED_LIBS)
84
84
ocv_install_target (${PNG_LIBRARY} EXPORT OpenCVModules ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev )
85
85
endif ()
86
86
87
- ocv_install_3rdparty_licenses (libpng LICENSE README opencv-libpng.patch )
87
+ ocv_install_3rdparty_licenses (libpng LICENSE README )
Original file line number Diff line number Diff line change @@ -582,6 +582,7 @@ if(ANDROID)
582
582
ocv_update (OPENCV_INCLUDE_INSTALL_PATH sdk/native/jni/include )
583
583
ocv_update (OPENCV_SAMPLES_SRC_INSTALL_PATH samples/native )
584
584
ocv_update (OPENCV_OTHER_INSTALL_PATH sdk/etc )
585
+ ocv_update (OPENCV_LICENSES_INSTALL_PATH "${OPENCV_OTHER_INSTALL_PATH} /licenses" )
585
586
else ()
586
587
set (LIBRARY_OUTPUT_PATH "${OpenCV_BINARY_DIR} /lib" )
587
588
ocv_update (3P_LIBRARY_OUTPUT_PATH "${OpenCV_BINARY_DIR} /3rdparty/lib${LIB_SUFFIX} " )
@@ -597,13 +598,15 @@ else()
597
598
ocv_update (OPENCV_JAR_INSTALL_PATH java )
598
599
ocv_update (OPENCV_OTHER_INSTALL_PATH etc )
599
600
ocv_update (OPENCV_CONFIG_INSTALL_PATH "." )
601
+ ocv_update (OPENCV_LICENSES_INSTALL_PATH "${OPENCV_OTHER_INSTALL_PATH} /licenses" )
600
602
else ()
601
603
include (GNUInstallDirs )
602
604
ocv_update (OPENCV_LIB_INSTALL_PATH ${CMAKE_INSTALL_LIBDIR} )
603
605
ocv_update (OPENCV_3P_LIB_INSTALL_PATH share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH} )
604
606
ocv_update (OPENCV_SAMPLES_SRC_INSTALL_PATH share/OpenCV/samples )
605
607
ocv_update (OPENCV_JAR_INSTALL_PATH share/OpenCV/java )
606
608
ocv_update (OPENCV_OTHER_INSTALL_PATH share/OpenCV )
609
+ ocv_update (OPENCV_LICENSES_INSTALL_PATH "${CMAKE_INSTALL_DATAROOTDIR} /licenses/opencv3" )
607
610
608
611
if (NOT DEFINED OPENCV_CONFIG_INSTALL_PATH )
609
612
math (EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P} " )
Original file line number Diff line number Diff line change @@ -245,7 +245,12 @@ if(NOT DEFINED IPPROOT)
245
245
return ()
246
246
endif ()
247
247
set (IPPROOT "${ICV_PACKAGE_ROOT} /icv" )
248
- ocv_install_3rdparty_licenses (ippicv "${IPPROOT} /readme.htm" "${ICV_PACKAGE_ROOT} /EULA.txt" )
248
+ ocv_install_3rdparty_licenses (ippicv "${IPPROOT} /readme.htm" )
249
+ if (WIN32 )
250
+ ocv_install_3rdparty_licenses (ippicv "${ICV_PACKAGE_ROOT} /EULA.rtf" )
251
+ else ()
252
+ ocv_install_3rdparty_licenses (ippicv "${ICV_PACKAGE_ROOT} /EULA.txt" )
253
+ endif ()
249
254
endif ()
250
255
251
256
file (TO_CMAKE_PATH "${IPPROOT} " __IPPROOT )
Original file line number Diff line number Diff line change @@ -148,9 +148,13 @@ if(BUILD_IPP_IW)
148
148
149
149
set (IPPIW_ROOT "${IPPROOT} /../iw" )
150
150
ocv_install_3rdparty_licenses (ippiw
151
- "${IPPIW_ROOT} /../EULA.txt"
152
151
"${IPPIW_ROOT} /../support.txt"
153
152
"${IPPIW_ROOT} /../third-party-programs.txt" )
153
+ if (WIN32 )
154
+ ocv_install_3rdparty_licenses (ippiw "${IPPIW_ROOT} /../EULA.rtf" )
155
+ else ()
156
+ ocv_install_3rdparty_licenses (ippiw "${IPPIW_ROOT} /../EULA.txt" )
157
+ endif ()
154
158
155
159
# Package sources
156
160
get_filename_component (__PATH "${IPPROOT} /../iw/" ABSOLUTE )
Original file line number Diff line number Diff line change @@ -1200,13 +1200,17 @@ endfunction()
1200
1200
# ocv_install_3rdparty_licenses(<library-name> <filename1> [<filename2> ..])
1201
1201
function (ocv_install_3rdparty_licenses library )
1202
1202
foreach (filename ${ARGN} )
1203
+ set (filepath "${filename} " )
1204
+ if (NOT IS_ABSOLUTE "${filepath} " )
1205
+ set (filepath "${CMAKE_CURRENT_LIST_DIR} /${filepath} " )
1206
+ endif ()
1203
1207
get_filename_component (name "${filename} " NAME )
1204
1208
install (
1205
- FILES "${filename } "
1206
- DESTINATION "${OPENCV_OTHER_INSTALL_PATH} /licenses "
1209
+ FILES "${filepath } "
1210
+ DESTINATION "${OPENCV_LICENSES_INSTALL_PATH} "
1207
1211
COMPONENT licenses
1208
1212
RENAME "${library} -${name} "
1209
- OPTIONAL )
1213
+ )
1210
1214
endforeach ()
1211
1215
endfunction ()
1212
1216
You can’t perform that action at this time.
0 commit comments