working with opencv3.1

parent 31a26ff9
......@@ -20,7 +20,7 @@ SET( CMAKE_BUILD_TYPE Release)
INCLUDE (${PROJECT_SOURCE_DIR}/FindmvIMPACT.cmake)
#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_VERSION_MAJOR} GREATER 2)
......
# add the necessary include directories
INCLUDE_DIRECTORIES(.)
# create an example application
ADD_EXECUTABLE(mvbluefox3_test mvbluefox3_test.cpp)
if (USE_CV)
# 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)
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