Skip to content
Snippets Groups Projects
Commit b46e3bd2 authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

working with opencv3.1

parent 31a26ff9
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ SET( CMAKE_BUILD_TYPE Release) ...@@ -20,7 +20,7 @@ SET( CMAKE_BUILD_TYPE Release)
INCLUDE (${PROJECT_SOURCE_DIR}/FindmvIMPACT.cmake) INCLUDE (${PROJECT_SOURCE_DIR}/FindmvIMPACT.cmake)
#find the cv support and set HAVE_OPENCV_H for the conditional compilation #find the cv support and set HAVE_OPENCV_H for the conditional compilation
FIND_PACKAGE(OpenCV 3) FIND_PACKAGE(OpenCV 3.1)
if (OpenCV_FOUND) if (OpenCV_FOUND)
if (${OpenCV_VERSION_MAJOR} GREATER 2) if (${OpenCV_VERSION_MAJOR} GREATER 2)
......
# add the necessary include directories # add the necessary include directories
INCLUDE_DIRECTORIES(.) INCLUDE_DIRECTORIES(.)
# create an example application if (USE_CV)
ADD_EXECUTABLE(mvbluefox3_test mvbluefox3_test.cpp)
# create an example application
ADD_EXECUTABLE(mvbluefox3_test mvbluefox3_test.cpp)
# link necessary libraries
TARGET_LINK_LIBRARIES(mvbluefox3_test mvbluefox3 ${mvIMPACT_LIBRARY} ${OpenCV_LIBS})
endif()
# link necessary libraries
TARGET_LINK_LIBRARIES(mvbluefox3_test mvbluefox3)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment