diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 7e93091..3fd742f 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories("${PROJECT_SOURCE_DIR}/libflandmark") find_package( OpenCV REQUIRED ) include_directories(${OPENCV_INCLUDE_DIR}) -if (${OpenCV_VERSION_MINOR} LESS 3) +if (${OpenCV_VERSION_MINOR} GREATER 3) if (UNIX) set(CV_LIBS_1 highgui) set(CV_LIBS_2 cxcore cv cvaux) @@ -23,7 +23,7 @@ else(${OpenCV_VERSION_MINOR} LESS 3) set(CV_LIBS_2 opencv_core${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH} opencv_objdetect${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}) elseif (APPLE) endif (UNIX) -endif(${OpenCV_VERSION_MINOR} LESS 3) +endif(${OpenCV_VERSION_MINOR} GREATER 3) set(${PROJECT_NAME}_simple_example_srcs simple_example.cpp) add_executable(${PROJECT_NAME}_simple_example ${${PROJECT_NAME}_simple_example_srcs})