Commit c92f3072 authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: add check for IPP IW license files

parent ba0b3983
...@@ -29,6 +29,16 @@ macro(ippiw_debugmsg MESSAGE) ...@@ -29,6 +29,16 @@ macro(ippiw_debugmsg MESSAGE)
message(STATUS "${MESSAGE}") message(STATUS "${MESSAGE}")
endif() endif()
endmacro() endmacro()
macro(ippiw_done)
foreach(__file ${IPP_IW_LICENSE_FILES})
if(EXISTS "${__file}")
ocv_install_3rdparty_licenses(ippiw "${__file}")
endif()
endforeach()
return()
endmacro()
file(TO_CMAKE_PATH "${IPPROOT}" IPPROOT) file(TO_CMAKE_PATH "${IPPROOT}" IPPROOT)
# This function detects Intel IPP Integration Wrappers version by analyzing .h file # This function detects Intel IPP Integration Wrappers version by analyzing .h file
...@@ -81,7 +91,7 @@ macro(ippiw_setup PATH BUILD) ...@@ -81,7 +91,7 @@ macro(ippiw_setup PATH BUILD)
if(EXISTS "${FILE}") if(EXISTS "${FILE}")
set(HAVE_IPP_IW_LL 1) set(HAVE_IPP_IW_LL 1)
endif() endif()
return() ippiw_done()
else() else()
ippiw_debugmsg("sources\tno") ippiw_debugmsg("sources\tno")
endif() endif()
...@@ -120,7 +130,7 @@ macro(ippiw_setup PATH BUILD) ...@@ -120,7 +130,7 @@ macro(ippiw_setup PATH BUILD)
if(EXISTS "${FILE}") if(EXISTS "${FILE}")
set(HAVE_IPP_IW_LL 1) set(HAVE_IPP_IW_LL 1)
endif() endif()
return() ippiw_done()
else() else()
ippiw_debugmsg("binaries\tno") ippiw_debugmsg("binaries\tno")
endif() endif()
...@@ -147,14 +157,12 @@ if(BUILD_IPP_IW) ...@@ -147,14 +157,12 @@ if(BUILD_IPP_IW)
ippiw_setup("${OpenCV_SOURCE_DIR}/3rdparty/ippiw" 1) ippiw_setup("${OpenCV_SOURCE_DIR}/3rdparty/ippiw" 1)
set(IPPIW_ROOT "${IPPROOT}/../iw") set(IPPIW_ROOT "${IPPROOT}/../iw")
ocv_install_3rdparty_licenses(ippiw set(IPP_IW_LICENSE_FILES ${IPP_IW_LICENSE_FILES_EXTRA}
"${IPPIW_ROOT}/../support.txt" "${IPPIW_ROOT}/../support.txt"
"${IPPIW_ROOT}/../third-party-programs.txt") "${IPPIW_ROOT}/../third-party-programs.txt"
if(WIN32) "${IPPIW_ROOT}/../EULA.rtf"
ocv_install_3rdparty_licenses(ippiw "${IPPIW_ROOT}/../EULA.rtf") "${IPPIW_ROOT}/../EULA.txt"
else() )
ocv_install_3rdparty_licenses(ippiw "${IPPIW_ROOT}/../EULA.txt")
endif()
# Package sources # Package sources
get_filename_component(__PATH "${IPPROOT}/../iw/" ABSOLUTE) get_filename_component(__PATH "${IPPROOT}/../iw/" ABSOLUTE)
...@@ -167,10 +175,11 @@ if(BUILD_IPP_IW) ...@@ -167,10 +175,11 @@ if(BUILD_IPP_IW)
include("${OpenCV_SOURCE_DIR}/3rdparty/ippicv/ippicv.cmake") include("${OpenCV_SOURCE_DIR}/3rdparty/ippicv/ippicv.cmake")
download_ippicv(TEMP_ROOT) download_ippicv(TEMP_ROOT)
set(IPPIW_ROOT "${TEMP_ROOT}/iw/") set(IPPIW_ROOT "${TEMP_ROOT}/iw/")
ocv_install_3rdparty_licenses(ippiw set(IPP_IW_LICENSE_FILES ${IPP_IW_LICENSE_FILES_EXTRA}
"${IPPIW_ROOT}/../EULA.txt" "${IPPIW_ROOT}/../EULA.txt"
"${IPPIW_ROOT}/../support.txt" "${IPPIW_ROOT}/../support.txt"
"${IPPIW_ROOT}/../third-party-programs.txt") "${IPPIW_ROOT}/../third-party-programs.txt"
)
ippiw_setup("${IPPIW_ROOT}" 1) ippiw_setup("${IPPIW_ROOT}" 1)
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment