cmake_minimum_required(VERSION 3.8)

project(vpi_blur)

# This instructs cmake to look for the most recent
# vpi instance installed on the system.
find_package(vpi)

# Used for image I/O only
# In Ubuntu-18.04, install libopencv-dev package
find_package(OpenCV 4.1 QUIET)
if(NOT OpenCV_FOUND)
    find_package(OpenCV 3.2 REQUIRED)
endif()

# Creates the blur executable target
add_executable(vpi_blur main.cpp)

# It uses vpi and opencv. CMake will automatically
# set up the correct header and library directories,
# and make hello_work link to these libraries.
target_link_libraries(vpi_blur vpi opencv_imgcodecs opencv_core)
