CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. cmake_minimum_required(VERSION 2.8.12)
  2. PROJECT(Invisibility_Cloak)
  3. ######################## EDIT IF REQUIRED ####################
  4. # ### If CMake is not able to find the path to OpenCV installation then 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.
  5. #SET(OpenCV_DIR Enter-the-path-of-OpenCV-installation-on-your-system)
  6. ################### OpenCV_DIR Examples #####################
  7. ### MACOS : /usr/local/Cellar/opencv/3.3.1_1/share/OpenCV/
  8. ### UBUNTU : /usr/local/share/OpenCV/
  9. ### WINDOWS : C:\Users\yourname\Documents\opencv-3.3.1\build\install
  10. ##############################################################
  11. ################### ***DO NOT EDIT*** #####################
  12. ############# Common Instructions for all Users ############
  13. find_package( OpenCV REQUIRED )
  14. include_directories( ${OpenCV_INCLUDE_DIRS})
  15. MACRO(add_example name)
  16. ADD_EXECUTABLE(${name} ${name}.cpp)
  17. TARGET_LINK_LIBRARIES(${name} ${OpenCV_LIBS})
  18. ENDMACRO()
  19. add_example(Invisibility_Cloak)