From 04bd93a63692977c947542f8ff88cca2b9662c97 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 16 Nov 2022 12:58:44 -0500 Subject: Bot now uses Mastodon instead of Twitter --- CMakeLists.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ccb287..087d4a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,17 +3,22 @@ project (father) 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/libtwittercpp/src + ${mastodonpp_INCLUDE_DIRS} vendor/verbly/lib ${yaml-cpp_INCLUDE_DIRS} - vendor/hkutil) + vendor/hkutil + vendor/json) -add_executable(father father.cpp) -set_property(TARGET father PROPERTY CXX_STANDARD 11) +link_directories( + ${mastodonpp_LIBRARY_DIRS} + ${yaml-cpp_LIBRARY_DIRS}) + +add_executable(father father.cpp timeline.cpp) +set_property(TARGET father PROPERTY CXX_STANDARD 17) set_property(TARGET father PROPERTY CXX_STANDARD_REQUIRED ON) -target_link_libraries(father verbly twitter++ ${yaml-cpp_LIBRARIES}) +target_link_libraries(father verbly ${mastodonpp_LIBRARIES} ${yaml-cpp_LIBRARIES}) -- cgit 1.4.1