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
fe2f5c17
Commit
fe2f5c17
authored
Dec 10, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distrib: remove useless static files from shared distribution package
parent
8f732f2c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
22 deletions
+31
-22
OpenCVFindIPP.cmake
cmake/OpenCVFindIPP.cmake
+8
-6
OpenCVGenConfig.cmake
cmake/OpenCVGenConfig.cmake
+2
-6
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+21
-10
No files found.
cmake/OpenCVFindIPP.cmake
View file @
fe2f5c17
...
...
@@ -146,12 +146,14 @@ macro(ipp_detect_version)
IMPORTED_LOCATION
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
)
list
(
APPEND IPP_LIBRARIES ipp
${
name
}
)
# CMake doesn't support "install(TARGETS ${IPP_PREFIX}${name} " command with imported targets
install
(
FILES
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
string
(
TOUPPER
${
name
}
uname
)
set
(
IPP
${
uname
}
_INSTALL_PATH
"
${
CMAKE_INSTALL_PREFIX
}
/
${
OPENCV_3P_LIB_INSTALL_PATH
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
CACHE INTERNAL
""
FORCE
)
set
(
IPP
${
uname
}
_LOCATION_PATH
"
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
CACHE INTERNAL
""
FORCE
)
if
(
NOT BUILD_SHARED_LIBS OR NOT INSTALL_CREATE_DISTRIB
)
# CMake doesn't support "install(TARGETS ${IPP_PREFIX}${name} " command with imported targets
install
(
FILES
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
DESTINATION
${
OPENCV_3P_LIB_INSTALL_PATH
}
COMPONENT dev
)
string
(
TOUPPER
${
name
}
uname
)
set
(
IPP
${
uname
}
_INSTALL_PATH
"
${
CMAKE_INSTALL_PREFIX
}
/
${
OPENCV_3P_LIB_INSTALL_PATH
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
CACHE INTERNAL
""
FORCE
)
set
(
IPP
${
uname
}
_LOCATION_PATH
"
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
CACHE INTERNAL
""
FORCE
)
endif
()
endif
()
else
()
message
(
STATUS
"Can't find IPP library:
${
name
}
at
${
IPP_LIBRARY_DIR
}
/
${
IPP_LIB_PREFIX
}${
IPP_PREFIX
}${
name
}${
IPP_SUFFIX
}${
IPP_LIB_SUFFIX
}
"
)
...
...
cmake/OpenCVGenConfig.cmake
View file @
fe2f5c17
...
...
@@ -83,7 +83,7 @@ endif()
export
(
TARGETS
${
OpenCVModules_TARGETS
}
FILE
"
${
CMAKE_BINARY_DIR
}
/OpenCVModules
${
modules_file_suffix
}
.cmake"
)
if
(
TARGET ippicv
)
if
(
TARGET ippicv
AND
(
NOT BUILD_SHARED_LIBS OR NOT INSTALL_CREATE_DISTRIB
)
)
set
(
USE_IPPICV TRUE
)
file
(
RELATIVE_PATH INSTALL_PATH_RELATIVE_IPPICV
${
CMAKE_BINARY_DIR
}
${
IPPICV_LOCATION_PATH
}
)
else
()
...
...
@@ -133,11 +133,7 @@ if(WIN32)
exec_program
(
mkdir ARGS
"-p
\"
${
CMAKE_BINARY_DIR
}
/win-install/
\"
"
OUTPUT_VARIABLE RET_VAL
)
if
(
USE_IPPICV
)
if
(
BUILD_SHARED_LIBS
)
file
(
RELATIVE_PATH INSTALL_PATH_RELATIVE_IPPICV
"
${
CMAKE_INSTALL_PREFIX
}
/
${
OpenCV_INSTALL_BINARIES_PREFIX
}
lib"
${
IPPICV_INSTALL_PATH
}
)
else
()
file
(
RELATIVE_PATH INSTALL_PATH_RELATIVE_IPPICV
"
${
CMAKE_INSTALL_PREFIX
}
/
${
OpenCV_INSTALL_BINARIES_PREFIX
}
staticlib"
${
IPPICV_INSTALL_PATH
}
)
endif
()
file
(
RELATIVE_PATH INSTALL_PATH_RELATIVE_IPPICV
"
${
CMAKE_INSTALL_PREFIX
}
/
${
OpenCV_INSTALL_BINARIES_PREFIX
}
staticlib"
${
IPPICV_INSTALL_PATH
}
)
endif
()
configure_file
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/templates/OpenCVConfig.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/win-install/OpenCVConfig.cmake"
@ONLY
)
configure_file
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/templates/OpenCVConfig-version.cmake.in"
"
${
CMAKE_BINARY_DIR
}
/win-install/OpenCVConfig-version.cmake"
@ONLY
)
...
...
cmake/OpenCVModule.cmake
View file @
fe2f5c17
...
...
@@ -777,11 +777,20 @@ macro(_ocv_create_module)
set_source_files_properties
(
${
OPENCV_MODULE_
${
the_module
}
_HEADERS
}
${
OPENCV_MODULE_
${
the_module
}
_SOURCES
}
${${
the_module
}
_pch
}
PROPERTIES LABELS
"
${
OPENCV_MODULE_
${
the_module
}
_LABEL
}
;Module"
)
ocv_target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS_TO_LINK
}
)
ocv_target_link_libraries
(
${
the_module
}
LINK_INTERFACE_LIBRARIES
${
OPENCV_MODULE_
${
the_module
}
_DEPS_TO_LINK
}
)
ocv_target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
if
(
HAVE_CUDA
)
ocv_target_link_libraries
(
${
the_module
}
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
if
(
NOT BUILD_SHARED_LIBS OR NOT INSTALL_CREATE_DISTRIB
)
ocv_target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS_TO_LINK
}
)
ocv_target_link_libraries
(
${
the_module
}
LINK_INTERFACE_LIBRARIES
${
OPENCV_MODULE_
${
the_module
}
_DEPS_TO_LINK
}
)
ocv_target_link_libraries
(
${
the_module
}
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
if
(
HAVE_CUDA
)
ocv_target_link_libraries
(
${
the_module
}
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
endif
()
else
()
ocv_target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
OPENCV_MODULE_
${
the_module
}
_DEPS_TO_LINK
}
)
ocv_target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
OPENCV_MODULE_
${
the_module
}
_DEPS_TO_LINK
}
)
ocv_target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
OPENCV_MODULE_
${
the_module
}
_DEPS_EXT
}
${
OPENCV_LINKER_LIBS
}
${
IPP_LIBS
}
${
ARGN
}
)
if
(
HAVE_CUDA
)
ocv_target_link_libraries
(
${
the_module
}
LINK_PRIVATE
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
endif
()
endif
()
add_dependencies
(
opencv_modules
${
the_module
}
)
...
...
@@ -825,12 +834,14 @@ macro(_ocv_create_module)
set_target_properties
(
${
the_module
}
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:libc /DEBUG"
)
endif
()
ocv_install_target
(
${
the_module
}
EXPORT OpenCVModules OPTIONAL
RUNTIME DESTINATION
${
OPENCV_BIN_INSTALL_PATH
}
COMPONENT libs
LIBRARY DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
COMPONENT libs NAMELINK_SKIP
ARCHIVE DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
COMPONENT dev
)
get_target_property
(
_target_type
${
the_module
}
TYPE
)
if
(
"
${
_target_type
}
"
STREQUAL
"SHARED_LIBRARY"
OR
(
NOT BUILD_SHARED_LIBS OR NOT INSTALL_CREATE_DISTRIB
))
ocv_install_target
(
${
the_module
}
EXPORT OpenCVModules OPTIONAL
RUNTIME DESTINATION
${
OPENCV_BIN_INSTALL_PATH
}
COMPONENT libs
LIBRARY DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
COMPONENT libs NAMELINK_SKIP
ARCHIVE DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
COMPONENT dev
)
endif
()
if
(
"
${
_target_type
}
"
STREQUAL
"SHARED_LIBRARY"
)
install
(
TARGETS
${
the_module
}
LIBRARY DESTINATION
${
OPENCV_LIB_INSTALL_PATH
}
COMPONENT dev NAMELINK_ONLY
)
...
...
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