From a76e81ee8bcbad87c9eb58cdb25452cae65bd0c7 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 23 Dec 2022 11:09:58 +0000 Subject: Bot is now a Mastodon bot --- CMakeLists.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e444b73..646200b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,21 +1,26 @@ cmake_minimum_required (VERSION 3.1) project (difference) -add_subdirectory(vendor/libtwittercpp) +add_subdirectory(vendor/curlcpp) add_subdirectory(vendor/verbly) find_package(PkgConfig) pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) +pkg_check_modules(mastodonpp mastodonpp REQUIRED) pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) include_directories( - vendor/libtwittercpp/src - vendor/libtwittercpp/vendor/curlcpp/include + ${CURLCPP_SOURCE_DIR}/include + ${mastodonpp_INCLUDE_DIRS} vendor/verbly/lib + vendor/json ${GraphicsMagick_INCLUDE_DIRS} ${yaml-cpp_INCLUDE_DIRS}) -add_executable(difference difference.cpp main.cpp) -set_property(TARGET difference PROPERTY CXX_STANDARD 11) +link_directories( + ${mastodonpp_LIBRARY_DIRS}) + +add_executable(difference difference.cpp main.cpp imagenet.cpp) +set_property(TARGET difference PROPERTY CXX_STANDARD 17) set_property(TARGET difference PROPERTY CXX_STANDARD_REQUIRED ON) -target_link_libraries(difference verbly ${yaml-cpp_LIBRARIES} twitter++ ${GraphicsMagick_LIBRARIES}) +target_link_libraries(difference verbly ${yaml-cpp_LIBRARIES} curlcpp ${GraphicsMagick_LIBRARIES} ${mastodonpp_LIBRARIES}) -- cgit 1.4.1