CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728
  1. CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
  2. set(name "facerec")
  3. project(facerec_cpp_samples)
  4. #SET(OpenCV_DIR /path/to/your/opencv/installation)
  5. # packages
  6. find_package(OpenCV REQUIRED) # http://opencv.org
  7. # probably you should loop through the sample files here
  8. add_executable(facerec_demo facerec_demo.cpp)
  9. target_link_libraries(facerec_demo opencv_core opencv_face opencv_imgproc opencv_highgui)
  10. add_executable(facerec_video facerec_video.cpp)
  11. target_link_libraries(facerec_video opencv_face opencv_core opencv_imgproc opencv_highgui opencv_objdetect opencv_imgproc)
  12. add_executable(facerec_eigenfaces facerec_eigenfaces.cpp)
  13. target_link_libraries(facerec_eigenfaces opencv_face opencv_core opencv_imgproc opencv_highgui)
  14. add_executable(facerec_fisherfaces facerec_fisherfaces.cpp)
  15. target_link_libraries(facerec_fisherfaces opencv_face opencv_core opencv_imgproc opencv_highgui)
  16. add_executable(facerec_lbph facerec_lbph.cpp)
  17. target_link_libraries(facerec_lbph opencv_face opencv_core opencv_imgproc opencv_highgui)
  18. add_executable(mace_webcam mace_webcam.cpp)
  19. target_link_libraries(mace_webcam opencv_face opencv_core opencv_imgproc opencv_highgui opencv_videoio)