Skip to content

Instantly share code, notes, and snippets.

@codebudo
Created July 30, 2019 04:56
Show Gist options
  • Save codebudo/40c76008c93e0351eb3c4a41a816e743 to your computer and use it in GitHub Desktop.
Save codebudo/40c76008c93e0351eb3c4a41a816e743 to your computer and use it in GitHub Desktop.
CMake file for compiling OpenCV tests
cmake_minimum_required(VERSION 2.8)
project( OpenCVTest )
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
add_executable( resizecpu resize_cpu.cpp )
target_link_libraries( resizecpu ${OpenCV_LIBS} )
add_executable( resizegpu resize_gpu.cpp )
target_link_libraries( resizegpu ${OpenCV_LIBS} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment