File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ set(the_description "SFM algorithms")
5
5
6
6
find_package (Ceres QUIET )
7
7
8
- if (NOT DEFINED SFM_DEPS_OK )
8
+ if (NOT DEFINED GFLAGS_LIBRARIES )
9
+ set (GFLAGS_LIBRARIES "gflags" )
10
+ endif ()
9
11
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 )
13
17
14
18
set (_fname "${CMAKE_CURRENT_BINARY_DIR} /test_sfm_deps.cpp" )
15
19
file (WRITE "${_fname} " "#include <glog/logging.h>\n #include <gflags/gflags.h>\n int main() { (void)(0); return 0; }\n " )
@@ -96,7 +100,7 @@ ocv_module_include_directories()
96
100
FILE (GLOB OPENCV_SFM_SRC src/*.cpp )
97
101
98
102
# 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 )
100
104
101
105
ocv_set_module_sources (HEADERS ${OPENCV_SFM_HDRS}
102
106
SOURCES ${OPENCV_SFM_SRC} )
You can’t perform that action at this time.
0 commit comments