Skip to content

Commit fc5be80

Browse files
committed
Merge pull request #471 from maccesch:master
2 parents b178436 + 7228118 commit fc5be80

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

modules/sfm/CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ set(the_description "SFM algorithms")
55

66
find_package(Ceres QUIET)
77

8-
if(NOT DEFINED SFM_DEPS_OK)
8+
if(NOT DEFINED GFLAGS_LIBRARIES)
9+
set(GFLAGS_LIBRARIES "gflags")
10+
endif()
911

10-
if(NOT DEFINED GLOG_LIBRARIES)
11-
set(GLOG_LIBRARIES "glog")
12-
endif()
12+
if(NOT DEFINED GLOG_LIBRARIES)
13+
set(GLOG_LIBRARIES "glog")
14+
endif()
15+
16+
if(NOT DEFINED SFM_DEPS_OK)
1317

1418
set(_fname "${CMAKE_CURRENT_BINARY_DIR}/test_sfm_deps.cpp")
1519
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()
96100
FILE(GLOB OPENCV_SFM_SRC src/*.cpp)
97101

98102
# define the header files (make the headers appear in IDEs.)
99-
FILE(GLOB OPENCV_SFM_HDRS include/opencv2/sfm/*.hpp)
103+
FILE(GLOB OPENCV_SFM_HDRS include/opencv2/sfm.hpp include/opencv2/sfm/*.hpp)
100104

101105
ocv_set_module_sources(HEADERS ${OPENCV_SFM_HDRS}
102106
SOURCES ${OPENCV_SFM_SRC})

0 commit comments

Comments
 (0)