2010-05-11 19:44:00 +02:00
|
|
|
PROJECT(opencv_example)
|
|
|
|
|
2012-10-17 09:12:04 +02:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
|
|
|
if(COMMAND cmake_policy)
|
|
|
|
cmake_policy(SET CMP0003 NEW)
|
|
|
|
endif(COMMAND cmake_policy)
|
2010-05-11 19:44:00 +02:00
|
|
|
|
|
|
|
FIND_PACKAGE( OpenCV REQUIRED )
|
|
|
|
|
|
|
|
# Declare the target (an executable)
|
|
|
|
ADD_EXECUTABLE(opencv_example minarea.c)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(opencv_example ${OpenCV_LIBS})
|
|
|
|
|
|
|
|
#MESSAGE(STATUS "OpenCV_LIBS: ${OpenCV_LIBS}")
|
|
|
|
|
2012-10-17 09:12:04 +02:00
|
|
|
|
2010-05-11 19:44:00 +02:00
|
|
|
|