From c51eb502c568ea2d84933b8e2445e98c81307671 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 15 Nov 2022 11:41:38 -0500 Subject: Bot now posts to Mastodon instead of Twitter You need to install mastodonpp on your server. --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index fe7fd64..3f11278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,16 +3,20 @@ project (wordplay) find_package(PkgConfig) pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) +pkg_check_modules(mastodonpp mastodonpp REQUIRED) -add_subdirectory(vendor/libtwittercpp) add_subdirectory(vendor/verbly) include_directories( vendor/verbly/lib - vendor/libtwittercpp/src + ${mastodonpp_INCLUDE_DIRS} ${yaml-cpp_INCLUDE_DIRS}) +link_directories( + ${mastodonpp_LIBRARY_DIRS} + ${yaml-cpp_LIBRARY_DIRS}) + add_executable(wordplay wordplay.cpp) -set_property(TARGET wordplay PROPERTY CXX_STANDARD 11) +set_property(TARGET wordplay PROPERTY CXX_STANDARD 17) set_property(TARGET wordplay PROPERTY CXX_STANDARD_REQUIRED ON) -target_link_libraries(wordplay verbly twitter++ ${yaml-cpp_LIBRARIES}) +target_link_libraries(wordplay verbly ${mastodonpp_LIBRARIES} ${yaml-cpp_LIBRARIES}) -- cgit 1.4.1