Added a simple CMakeLists.txt to the facerec_samples, which are not included in the...
authorPhilipp Wagner <bytefish@gmx.de>
Fri, 7 Sep 2012 15:33:44 +0000 (17:33 +0200)
committerPhilipp Wagner <bytefish@gmx.de>
Fri, 7 Sep 2012 15:33:44 +0000 (17:33 +0200)
modules/contrib/doc/facerec/src/CMakeLists.txt [new file with mode: 0644]

diff --git a/modules/contrib/doc/facerec/src/CMakeLists.txt b/modules/contrib/doc/facerec/src/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ef5f0db
--- /dev/null
@@ -0,0 +1,26 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+set(name "facerec")
+project(facerec_cpp_samples)
+
+#SET(OpenCV_DIR /path/to/your/opencv/installation)
+
+# packages
+find_package(OpenCV REQUIRED) # http://opencv.willowgarage.com
+
+# probably you should loop through the sample files here
+add_executable(facerec_demo facerec_demo.cpp)
+target_link_libraries(facerec_demo opencv_core opencv_contrib opencv_imgproc opencv_highgui)
+       
+add_executable(facerec_video facerec_video.cpp)
+target_link_libraries(facerec_video opencv_contrib opencv_core opencv_imgproc opencv_highgui opencv_objdetect opencv_imgproc)
+       
+add_executable(facerec_eigenfaces facerec_eigenfaces.cpp)
+target_link_libraries(facerec_eigenfaces opencv_contrib opencv_core opencv_imgproc opencv_highgui)
+       
+add_executable(facerec_fisherfaces facerec_fisherfaces.cpp)
+target_link_libraries(facerec_fisherfaces opencv_contrib opencv_core opencv_imgproc opencv_highgui)
+
+add_executable(facerec_lbph facerec_lbph.cpp)
+target_link_libraries(facerec_lbph opencv_contrib opencv_core opencv_imgproc opencv_highgui)
+