sfm: fix build with eigen

pull/2119/head
Alexander Alekhin 6 years ago
parent d24b025132
commit 983e4c1379
  1. 9
      modules/sfm/src/libmv_light/libmv/base/CMakeLists.txt
  2. 8
      modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt
  3. 5
      modules/sfm/src/libmv_light/libmv/multiview/CMakeLists.txt
  4. 6
      modules/sfm/src/libmv_light/libmv/numeric/CMakeLists.txt
  5. 4
      modules/sfm/src/libmv_light/libmv/simple_pipeline/CMakeLists.txt

@ -1,9 +0,0 @@
# define the source files
SET(BASE_SRC )
# define the header files (make the headers appear in IDEs.)
FILE(GLOB BASE_HDRS *.h)
ADD_LIBRARY(base STATIC ${BASE_SRC} ${BASE_HDRS})
LIBMV_INSTALL_LIB(base)

@ -8,6 +8,10 @@ FILE(GLOB CORRESPONDENCE_HDRS *.h)
ADD_LIBRARY(correspondence STATIC ${CORRESPONDENCE_SRC} ${CORRESPONDENCE_HDRS})
TARGET_LINK_LIBRARIES(correspondence multiview)
TARGET_LINK_LIBRARIES(correspondence LINK_PRIVATE multiview)
IF(TARGET Eigen3::Eigen)
TARGET_LINK_LIBRARIES(correspondence LINK_PUBLIC Eigen3::Eigen)
ENDIF()
LIBMV_INSTALL_LIB(correspondence)
LIBMV_INSTALL_LIB(correspondence)

@ -17,6 +17,9 @@ SET(MULTIVIEW_SRC conditioning.cc
FILE(GLOB MULTIVIEW_HDRS *.h)
ADD_LIBRARY(multiview STATIC ${MULTIVIEW_SRC} ${MULTIVIEW_HDRS})
TARGET_LINK_LIBRARIES(multiview ${GLOG_LIBRARY} numeric)
TARGET_LINK_LIBRARIES(multiview LINK_PRIVATE ${GLOG_LIBRARY} numeric)
IF(TARGET Eigen3::Eigen)
TARGET_LINK_LIBRARIES(multiview LINK_PUBLIC Eigen3::Eigen)
ENDIF()
LIBMV_INSTALL_LIB(multiview)

@ -7,6 +7,8 @@ FILE(GLOB NUMERIC_HDRS *.h)
ADD_LIBRARY(numeric STATIC ${NUMERIC_SRC} ${NUMERIC_HDRS})
TARGET_LINK_LIBRARIES(numeric)
IF(TARGET Eigen3::Eigen)
TARGET_LINK_LIBRARIES(numeric LINK_PUBLIC Eigen3::Eigen)
ENDIF()
LIBMV_INSTALL_LIB(numeric)
LIBMV_INSTALL_LIB(numeric)

@ -17,6 +17,6 @@ FILE(GLOB SIMPLE_PIPELINE_HDRS *.h)
ADD_LIBRARY(simple_pipeline STATIC ${SIMPLE_PIPELINE_SRC} ${SIMPLE_PIPELINE_HDRS})
TARGET_LINK_LIBRARIES(simple_pipeline multiview ${CERES_LIBRARIES})
TARGET_LINK_LIBRARIES(simple_pipeline LINK_PRIVATE multiview ${CERES_LIBRARIES})
LIBMV_INSTALL_LIB(simple_pipeline)
LIBMV_INSTALL_LIB(simple_pipeline)

Loading…
Cancel
Save