From e03c6d55081b4e19ac0f2d5c5b88a53d61023c15 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 26 Oct 2022 22:53:34 +0200 Subject: [PATCH] cmake lists file to link to opencv --- Image_processing/CMakeLists.txt | 16 ++++++++++++++++ Image_processing/lfr.cpp | 1 + 2 files changed, 17 insertions(+) create mode 100644 Image_processing/CMakeLists.txt diff --git a/Image_processing/CMakeLists.txt b/Image_processing/CMakeLists.txt new file mode 100644 index 0000000..71def2c --- /dev/null +++ b/Image_processing/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.0.0) +project(lfr_image_processing VERSION 0.1.0) + +include(CTest) +enable_testing() + +find_package( OpenCV REQUIRED ) +include_directories( ${OpenCV_INCLUDE_DIRS} ) + +add_executable(lfr_image_processing lfr.cpp) + +target_link_libraries( lfr_image_processing ${OpenCV_LIBS} ) + +set(CPACK_PROJECT_NAME ${PROJECT_NAME}) +set(CPACK_PROJECT_VERSION ${PROJECT_VERSION}) +include(CPack) diff --git a/Image_processing/lfr.cpp b/Image_processing/lfr.cpp index 9d72213..02ab060 100644 --- a/Image_processing/lfr.cpp +++ b/Image_processing/lfr.cpp @@ -1,4 +1,5 @@ #include +#include int main(void) {