From 653810e4df77175a51a024448d86c08ee22b27c1 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Fri, 17 Oct 2014 13:23:23 +0400 Subject: [PATCH] fix installation layout for debian packages: Install symlinks to shared libraries as a part of development package, not runtime package. It is default behavior for debian packages. --- cmake/OpenCVModule.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake index d1558f406..a1a1b9020 100644 --- a/cmake/OpenCVModule.cmake +++ b/cmake/OpenCVModule.cmake @@ -782,9 +782,14 @@ macro(_ocv_create_module) ocv_install_target(${the_module} EXPORT OpenCVModules OPTIONAL RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT libs - LIBRARY DESTINATION ${OPENCV_LIB_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") + install(TARGETS ${the_module} + LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT dev NAMELINK_ONLY) + endif() foreach(m ${OPENCV_MODULE_${the_module}_CHILDREN} ${the_module}) # only "public" headers need to be installed