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) find_package(websocketpp) include_directories( vendor/json vendor/hkutil vendor/asio/asio/include vendor/base64/include ${tesseract_INCLUDE_DIRS} #/Users/hatkirby/Repos/tesseract/include ${lept_INCLUDE_DIRS} ${GraphicsMagick_INCLUDE_DIRS} ${curlcpp_INCLUDE_DIRS} ${tclap_INCLUDE_DIRS} ${WEBSOCKETPP_INCLUDE_DIR} ) link_directories( ${tesseract_LIBRARY_DIRS} #/Users/hatkirby/Repos/tesseract/build/here/usr/local/lib ${lept_LIBRARY_DIRS} ${GraphicsMagick_LIBRARY_DIRS} ${curlcpp_LIBRARY_DIRS} ${websocketpp_LIBRARY_DIRS} ) add_library(wizard cardset.cpp imagestore.cpp designer.cpp wizard.cpp) set_property(TARGET wizard PROPERTY CXX_STANDARD 17) set_property(TARGET wizard PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries( wizard ${tesseract_LIBRARIES} ${lept_LIBRARIES} ${GraphicsMagick_LIBRARIES} ${curlcpp_LIBRARIES} ) add_executable(wizard_gen main.cpp) set_property(TARGET wizard_gen PROPERTY CXX_STANDARD 17) set_property(TARGET wizard_gen PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries( wizard_gen wizard ) add_executable(wizard_server server_main.cpp) set_property(TARGET wizard_server PROPERTY CXX_STANDARD 17) set_property(TARGET wizard_server PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries( wizard_server wizard ${websocketpp_LIBRARIES} )