CMakeLists.txt 246 B

123456789
  1. cmake_minimum_required(VERSION 2.8)
  2. project(example)
  3. find_package(OpenCV REQUIRED)
  4. set(SOURCES example.cpp)
  5. include_directories(${OpenCV_INCLUDE_DIRS})
  6. add_executable(example ${SOURCES} ${HEADERS})
  7. target_link_libraries(example ${OpenCV_LIBS})