From 46fb893f9a632012990713c4003d7d3cab4f2f25 Mon Sep 17 00:00:00 2001 From: Kumataro Date: Fri, 19 Jan 2024 15:41:00 +0000 Subject: [PATCH] sfm: add opencv.sfm prefix for static libraries --- modules/sfm/CMakeLists.txt | 8 ++++---- .../libmv_light/libmv/correspondence/CMakeLists.txt | 8 ++++---- .../sfm/src/libmv_light/libmv/multiview/CMakeLists.txt | 10 +++++----- .../sfm/src/libmv_light/libmv/numeric/CMakeLists.txt | 6 +++--- .../libmv_light/libmv/simple_pipeline/CMakeLists.txt | 6 +++--- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/modules/sfm/CMakeLists.txt b/modules/sfm/CMakeLists.txt index 4377a61651e..46da72e309a 100644 --- a/modules/sfm/CMakeLists.txt +++ b/modules/sfm/CMakeLists.txt @@ -88,16 +88,16 @@ set(LIBMV_LIGHT_INCLUDES ) set(LIBMV_LIGHT_LIBS - correspondence - multiview - numeric + opencv.sfm.correspondence + opencv.sfm.multiview + opencv.sfm.numeric ${GLOG_LIBRARIES} ${GFLAGS_LIBRARIES} ) if(Ceres_FOUND) add_definitions("-DCERES_FOUND=1") - list(APPEND LIBMV_LIGHT_LIBS simple_pipeline) + list(APPEND LIBMV_LIGHT_LIBS opencv.sfm.simple_pipeline) if(Ceres_VERSION VERSION_LESS 2.0.0) list(APPEND LIBMV_LIGHT_INCLUDES "${CERES_INCLUDE_DIRS}") endif() diff --git a/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt b/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt index b950665325a..ddc6686ce28 100644 --- a/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt +++ b/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt @@ -6,12 +6,12 @@ SET(CORRESPONDENCE_SRC feature_matching.cc # define the header files (make the headers appear in IDEs.) FILE(GLOB CORRESPONDENCE_HDRS *.h) -ADD_LIBRARY(correspondence STATIC ${CORRESPONDENCE_SRC} ${CORRESPONDENCE_HDRS}) +ADD_LIBRARY(opencv.sfm.correspondence STATIC ${CORRESPONDENCE_SRC} ${CORRESPONDENCE_HDRS}) -ocv_target_link_libraries(correspondence LINK_PRIVATE ${GLOG_LIBRARIES} multiview opencv_imgcodecs) +ocv_target_link_libraries(opencv.sfm.correspondence LINK_PRIVATE ${GLOG_LIBRARIES} opencv.sfm.multiview opencv_imgcodecs) IF(TARGET Eigen3::Eigen) - TARGET_LINK_LIBRARIES(correspondence LINK_PUBLIC Eigen3::Eigen) + TARGET_LINK_LIBRARIES(opencv.sfm.correspondence LINK_PUBLIC Eigen3::Eigen) ENDIF() -LIBMV_INSTALL_LIB(correspondence) +LIBMV_INSTALL_LIB(opencv.sfm.correspondence) diff --git a/modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt b/modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt index ece11759079..806a01d1ef4 100644 --- a/modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt +++ b/modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt @@ -16,13 +16,13 @@ SET(MULTIVIEW_SRC conditioning.cc # define the header files (make the headers appear in IDEs.) FILE(GLOB MULTIVIEW_HDRS *.h) -ADD_LIBRARY(multiview STATIC ${MULTIVIEW_SRC} ${MULTIVIEW_HDRS}) -TARGET_LINK_LIBRARIES(multiview LINK_PRIVATE ${GLOG_LIBRARIES} numeric) +ADD_LIBRARY(opencv.sfm.multiview STATIC ${MULTIVIEW_SRC} ${MULTIVIEW_HDRS}) +TARGET_LINK_LIBRARIES(opencv.sfm.multiview LINK_PRIVATE ${GLOG_LIBRARIES} opencv.sfm.numeric) IF(TARGET Eigen3::Eigen) - TARGET_LINK_LIBRARIES(multiview LINK_PUBLIC Eigen3::Eigen) + TARGET_LINK_LIBRARIES(opencv.sfm.multiview LINK_PUBLIC Eigen3::Eigen) ENDIF() IF(CERES_LIBRARIES) - TARGET_LINK_LIBRARIES(multiview LINK_PRIVATE ${CERES_LIBRARIES}) + TARGET_LINK_LIBRARIES(opencv.sfm.multiview LINK_PRIVATE ${CERES_LIBRARIES}) ENDIF() -LIBMV_INSTALL_LIB(multiview) +LIBMV_INSTALL_LIB(opencv.sfm.multiview) diff --git a/modules/sfm/src/libmv_light/libmv/numeric/CMakeLists.txt b/modules/sfm/src/libmv_light/libmv/numeric/CMakeLists.txt index 3de2f2fda4b..002a00ff25f 100644 --- a/modules/sfm/src/libmv_light/libmv/numeric/CMakeLists.txt +++ b/modules/sfm/src/libmv_light/libmv/numeric/CMakeLists.txt @@ -5,10 +5,10 @@ SET(NUMERIC_SRC numeric.cc # define the header files (make the headers appear in IDEs.) FILE(GLOB NUMERIC_HDRS *.h) -ADD_LIBRARY(numeric STATIC ${NUMERIC_SRC} ${NUMERIC_HDRS}) +ADD_LIBRARY(opencv.sfm.numeric STATIC ${NUMERIC_SRC} ${NUMERIC_HDRS}) IF(TARGET Eigen3::Eigen) - TARGET_LINK_LIBRARIES(numeric LINK_PUBLIC Eigen3::Eigen) + TARGET_LINK_LIBRARIES(opencv.sfm.numeric LINK_PUBLIC Eigen3::Eigen) ENDIF() -LIBMV_INSTALL_LIB(numeric) +LIBMV_INSTALL_LIB(opencv.sfm.numeric) diff --git a/modules/sfm/src/libmv_light/libmv/simple_pipeline/CMakeLists.txt b/modules/sfm/src/libmv_light/libmv/simple_pipeline/CMakeLists.txt index 9426e290144..4ea75ea63c5 100644 --- a/modules/sfm/src/libmv_light/libmv/simple_pipeline/CMakeLists.txt +++ b/modules/sfm/src/libmv_light/libmv/simple_pipeline/CMakeLists.txt @@ -15,8 +15,8 @@ SET(SIMPLE_PIPELINE_SRC # Define the header files so that they appear in IDEs. FILE(GLOB SIMPLE_PIPELINE_HDRS *.h) -ADD_LIBRARY(simple_pipeline STATIC ${SIMPLE_PIPELINE_SRC} ${SIMPLE_PIPELINE_HDRS}) +ADD_LIBRARY(opencv.sfm.simple_pipeline STATIC ${SIMPLE_PIPELINE_SRC} ${SIMPLE_PIPELINE_HDRS}) -TARGET_LINK_LIBRARIES(simple_pipeline LINK_PRIVATE multiview ${CERES_LIBRARIES}) +TARGET_LINK_LIBRARIES(opencv.sfm.simple_pipeline LINK_PRIVATE opencv.sfm.multiview ${CERES_LIBRARIES}) -LIBMV_INSTALL_LIB(simple_pipeline) +LIBMV_INSTALL_LIB(opencv.sfm.simple_pipeline)