Skip to content

Commit

Permalink
make isaac use opencv4
Browse files Browse the repository at this point in the history
  • Loading branch information
marinagmoreira committed Apr 30, 2024

Verified

This commit was signed with the committer’s verified signature.
guidomodarelli Guido Modarelli
1 parent a206082 commit 7ca9684
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions dense_map/geometry_mapper/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -49,26 +49,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_PREFIX_PATH})
message(STATUS "CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}")
message(STATUS "CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}")

# Find OpenCV and fix a 3.3.1 bug
find_package(OpenCV 3 REQUIRED)
if (${OpenCV_VERSION} MATCHES "3.3.1")
foreach(__cvcomponent ${OpenCV_LIB_COMPONENTS})
set (__original_cvcomponent ${__cvcomponent})
if(NOT __cvcomponent MATCHES "^opencv_")
set(__cvcomponent opencv_${__cvcomponent})
endif()
if (TARGET ${__cvcomponent})
set_target_properties(${__cvcomponent} PROPERTIES
MAP_IMPORTED_CONFIG_DEBUG ""
MAP_IMPORTED_CONFIG_RELEASE ""
MAP_IMPORTED_CONFIG_RELWITHDEBINFO ""
MAP_IMPORTED_CONFIG_MINSIZEREL ""
)
endif()
endforeach(__cvcomponent)
endif()
set(OpenCV_LIBRARIES ${OpenCV_LIBS})

find_package(OpenCV 4 REQUIRED)
find_package(OpenMVG QUIET REQUIRED)

find_package(Protobuf REQUIRED)

0 comments on commit 7ca9684

Please sign in to comment.