CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. cmake_minimum_required(VERSION 2.8.12)
  2. PROJECT(inpainting)
  3. SET(OpenCV_DIR /home/hp/workfolder/OpenCV-Installation/installation/OpenCV-master/lib/cmake/opencv4)
  4. ######################## EDIT IF REQUIRED ####################
  5. # ###Uncomment the line below and specify the path to OpenCV directory i.e. the path to the OpenCVConfig.cmake file. Check the examples given below.
  6. #SET(OpenCV_DIR Enter-the-path-of-OpenCV-installation-on-your-system)
  7. ################### OpenCV_DIR Examples #####################
  8. ### MACOS : /usr/local/Cellar/opencv/3.3.1_1/share/OpenCV/
  9. ### UBUNTU : /usr/local/share/OpenCV/
  10. ### WINDOWS : C:\Users\yourname\Documents\opencv-3.3.1\build\install
  11. ##############################################################
  12. ################### ***DO NOT EDIT*** #####################
  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(inpaint)