123456789101112131415161718192021222324252627282930313233 |
- cmake_minimum_required(VERSION 2.8.12)
- PROJECT(VideoStabilization)
- ######################## EDIT IF REQUIRED ####################
- # 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.
- #SET(OpenCV_DIR Enter-the-path-of-OpenCV-installation-on-your-system)
- ################### OpenCV_DIR Examples #####################
- ### MACOS : /usr/local/Cellar/opencv/3.4.3/share/OpenCV/
- ### UBUNTU : /usr/local/share/OpenCV/
- ### WINDOWS : C:\Users\yourname\Documents\opencv-3.4.3\build\install
- ##############################################################
- ############# Common Instructions for all Users ############
- find_package( OpenCV REQUIRED )
- include_directories( ${OpenCV_INCLUDE_DIRS})
- MACRO(add_example name)
- ADD_EXECUTABLE(${name} ${name}.cpp)
- TARGET_LINK_LIBRARIES(${name} ${OpenCV_LIBS})
- ENDMACRO()
- add_example(video_stabilization)
|