cmake_minimum_required (VERSION 3.1) project (wizard) find_package(PkgConfig) pkg_check_modules(tesseract tesseract REQUIRED) pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) add_subdirectory(vendor/curlcpp) include_directories( vendor/json vendor/hkutil ${tesseract_INCLUDE_DIRS} ${GraphicsMagick_INCLUDE_DIRS} ${CURLCPP_SOURCE_DIR}/include) add_executable(wizard wizard.cpp) set_property(TARGET wizard PROPERTY CXX_STANDARD 14) set_property(TARGET wizard PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries( wizard ${tesseract_LIBRARIES} ${GraphicsMagick_LIBRARIES} lept curlcpp)