Commit 983e4c13 authored by Alexander Alekhin's avatar Alexander Alekhin

sfm: fix build with eigen

parent d24b0251
# 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)
\ No newline at end of file
......@@ -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)
\ No newline at end of file
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)
\ No newline at end of file
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)
\ No newline at end of file
LIBMV_INSTALL_LIB(simple_pipeline)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment