CMakeLists.txt 1016 B

123456789101112131415161718192021222324252627282930313233
  1. cmake_minimum_required(VERSION 2.8.12)
  2. PROJECT(VideoStabilization)
  3. ######################## EDIT IF REQUIRED ####################
  4. # If CMake is not able to find the path to OpenCV installation then
  5. # uncomment the line below and specify the path to OpenCV directory
  6. # (i.e. the path to the OpenCVConfig.cmake file). Check the examples given below.
  7. #SET(OpenCV_DIR Enter-the-path-of-OpenCV-installation-on-your-system)
  8. ################### OpenCV_DIR Examples #####################
  9. ### MACOS : /usr/local/Cellar/opencv/3.4.3/share/OpenCV/
  10. ### UBUNTU : /usr/local/share/OpenCV/
  11. ### WINDOWS : C:\Users\yourname\Documents\opencv-3.4.3\build\install
  12. ##############################################################
  13. ############# Common Instructions for all Users ############
  14. find_package( OpenCV REQUIRED )
  15. include_directories( ${OpenCV_INCLUDE_DIRS})
  16. MACRO(add_example name)
  17. ADD_EXECUTABLE(${name} ${name}.cpp)
  18. TARGET_LINK_LIBRARIES(${name} ${OpenCV_LIBS})
  19. ENDMACRO()
  20. add_example(video_stabilization)