Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c92f3072
Commit
c92f3072
authored
Oct 01, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: add check for IPP IW license files
parent
ba0b3983
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
OpenCVFindIPPIW.cmake
cmake/OpenCVFindIPPIW.cmake
+20
-11
No files found.
cmake/OpenCVFindIPPIW.cmake
View file @
c92f3072
...
...
@@ -29,6 +29,16 @@ macro(ippiw_debugmsg MESSAGE)
message
(
STATUS
"
${
MESSAGE
}
"
)
endif
()
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
)
# This function detects Intel IPP Integration Wrappers version by analyzing .h file
...
...
@@ -81,7 +91,7 @@ macro(ippiw_setup PATH BUILD)
if
(
EXISTS
"
${
FILE
}
"
)
set
(
HAVE_IPP_IW_LL 1
)
endif
()
return
()
ippiw_done
()
else
()
ippiw_debugmsg
(
"sources
\t
no"
)
endif
()
...
...
@@ -120,7 +130,7 @@ macro(ippiw_setup PATH BUILD)
if
(
EXISTS
"
${
FILE
}
"
)
set
(
HAVE_IPP_IW_LL 1
)
endif
()
return
()
ippiw_done
()
else
()
ippiw_debugmsg
(
"binaries
\t
no"
)
endif
()
...
...
@@ -147,14 +157,12 @@ if(BUILD_IPP_IW)
ippiw_setup
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/ippiw"
1
)
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
}
/../third-party-programs.txt"
)
if
(
WIN32
)
ocv_install_3rdparty_licenses
(
ippiw
"
${
IPPIW_ROOT
}
/../EULA.rtf"
)
else
()
ocv_install_3rdparty_licenses
(
ippiw
"
${
IPPIW_ROOT
}
/../EULA.txt"
)
endif
()
"
${
IPPIW_ROOT
}
/../third-party-programs.txt"
"
${
IPPIW_ROOT
}
/../EULA.rtf"
"
${
IPPIW_ROOT
}
/../EULA.txt"
)
# Package sources
get_filename_component
(
__PATH
"
${
IPPROOT
}
/../iw/"
ABSOLUTE
)
...
...
@@ -167,10 +175,11 @@ if(BUILD_IPP_IW)
include
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/ippicv/ippicv.cmake"
)
download_ippicv
(
TEMP_ROOT
)
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
}
/../support.txt"
"
${
IPPIW_ROOT
}
/../third-party-programs.txt"
)
"
${
IPPIW_ROOT
}
/../third-party-programs.txt"
)
ippiw_setup
(
"
${
IPPIW_ROOT
}
"
1
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment