cmake_minimum_required (VERSION 3.1) project (wizard) set(CMAKE_BUILD_TYPE Debug) find_package(PkgConfig) pkg_check_modules(tesseract tesseract REQUIRED) pkg_check_modules(lept lept REQUIRED) pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) pkg_check_modules(tclap tclap REQUIRED) pkg_check_modules(curlcpp curlcpp REQUIRED) include_directories( vendor/json vendor/hkutil ${tesseract_INCLUDE_DIRS} ${lept_INCLUDE_DIRS} ${GraphicsMagick_INCLUDE_DIRS} ${curlcpp_INCLUDE_DIRS} ${tclap_INCLUDE_DIRS} ) link_directories( ${tesseract_LIBRARY_DIRS} ${lept_LIBRARY_DIRS} ${GraphicsMagick_LIBRARY_DIRS} ${curlcpp_LIBRARY_DIRS} ) add_executable(wizard cardset.cpp imagestore.cpp designer.cpp wizard.cpp main.cpp) set_property(TARGET wizard PROPERTY CXX_STANDARD 14) set_property(TARGET wizard PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries( wizard ${tesseract_LIBRARIES} ${lept_LIBRARIES} ${GraphicsMagick_LIBRARIES} ${curlcpp_LIBRARIES} )