X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=samples%2Fc%2Fexample_cmake%2FCMakeLists.txt;fp=samples%2Fc%2Fexample_cmake%2FCMakeLists.txt;h=c4e92184a2f72cf746c3fbd2b8a692dd75a356c2;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=0000000000000000000000000000000000000000;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/samples/c/example_cmake/CMakeLists.txt b/samples/c/example_cmake/CMakeLists.txt new file mode 100755 index 0000000..c4e9218 --- /dev/null +++ b/samples/c/example_cmake/CMakeLists.txt @@ -0,0 +1,18 @@ +PROJECT(opencv_example) + +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) + +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}") + + +