From f9b555a03965c8a6b6983d03e81652ce792810df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Mand=C4=B1ra?= Date: Fri, 27 Jul 2018 02:39:33 +0300 Subject: [PATCH] Update CMakeLists.txt issue #30: https://github.com/uricamic/flandmark/issues/30#issuecomment-408266922 --- examples/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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})