Commit fc5be800 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #471 from maccesch:master

parents b178436e 72281187
......@@ -5,11 +5,15 @@ set(the_description "SFM algorithms")
find_package(Ceres QUIET)
if(NOT DEFINED SFM_DEPS_OK)
if(NOT DEFINED GFLAGS_LIBRARIES)
set(GFLAGS_LIBRARIES "gflags")
endif()
if(NOT DEFINED GLOG_LIBRARIES)
set(GLOG_LIBRARIES "glog")
endif()
if(NOT DEFINED GLOG_LIBRARIES)
set(GLOG_LIBRARIES "glog")
endif()
if(NOT DEFINED SFM_DEPS_OK)
set(_fname "${CMAKE_CURRENT_BINARY_DIR}/test_sfm_deps.cpp")
file(WRITE "${_fname}" "#include <glog/logging.h>\n#include <gflags/gflags.h>\nint main() { (void)(0); return 0; }\n")
......@@ -96,7 +100,7 @@ ocv_module_include_directories()
FILE(GLOB OPENCV_SFM_SRC src/*.cpp)
# define the header files (make the headers appear in IDEs.)
FILE(GLOB OPENCV_SFM_HDRS include/opencv2/sfm/*.hpp)
FILE(GLOB OPENCV_SFM_HDRS include/opencv2/sfm.hpp include/opencv2/sfm/*.hpp)
ocv_set_module_sources(HEADERS ${OPENCV_SFM_HDRS}
SOURCES ${OPENCV_SFM_SRC})
......
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