First steps towards implementing the autocropper. Current plan is to use OpenCV in C++. There are remains of testing to use stb image manipulation but reading them in disregarded image orientation (ie it would rotate on it's own) which is unacceptable. Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
25 lines
690 B
CMake
25 lines
690 B
CMake
cmake_minimum_required(VERSION 3.22)
|
|
project(autocropper
|
|
VERSION 0.1
|
|
DESCRIPTION "Autocrops Receipt Pictures"
|
|
LANGUAGES CXX)
|
|
|
|
#GLOBING
|
|
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
|
|
add_executable(CropperEx main.cpp ${SOURCE_FILES})
|
|
|
|
# add_executable(CropperEx main.cpp
|
|
# src/dog.cpp
|
|
# src/operations.cpp)
|
|
|
|
target_compile_features(CropperEx PRIVATE cxx_std_20)
|
|
|
|
find_package(OpenCV REQUIRED)
|
|
|
|
target_link_libraries(CropperEx ${OpenCV_LIBS})
|
|
|
|
target_include_directories(CropperEx
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../externallibraries/stbimagehelpers
|
|
PRIVATE ${OpenCV_INCLUDE_DIRS})
|