From 3784947541d4eb47834e10aafd2d7d0f2f07efc3 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 16 Nov 2022 13:15:04 -0500 Subject: Removed mastodonpp submodule Bot posts every 2 hours now. --- .gitmodules | 3 --- CMakeLists.txt | 16 ++++++++++++---- vendor/mastodonpp | 1 - yandere.cpp | 4 ++-- 4 files changed, 14 insertions(+), 10 deletions(-) delete mode 160000 vendor/mastodonpp diff --git a/.gitmodules b/.gitmodules index 5888bee..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "vendor/mastodonpp"] - path = vendor/mastodonpp - url = https://schlomp.space/tastytea/mastodonpp.git diff --git a/CMakeLists.txt b/CMakeLists.txt index c77e9fa..944d769 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,19 @@ cmake_minimum_required (VERSION 3.1) project (yandere) -add_subdirectory(vendor/mastodonpp) -add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL) +find_package(PkgConfig) +pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) +pkg_check_modules(mastodonpp mastodonpp REQUIRED) + +include_directories( + ${mastodonpp_INCLUDE_DIRS} + ${yaml-cpp_INCLUDE_DIRS}) + +link_directories( + ${mastodonpp_LIBRARY_DIRS} + ${yaml-cpp_LIBRARY_DIRS}) -include_directories(vendor/mastodonpp/include vendor/yaml-cpp/include) add_executable(yandere yandere.cpp) set_property(TARGET yandere PROPERTY CXX_STANDARD 17) set_property(TARGET yandere PROPERTY CXX_STANDARD_REQUIRED ON) -target_link_libraries(yandere yaml-cpp mastodonpp) +target_link_libraries(yandere ${mastodonpp_LIBRARIES} ${yaml-cpp_LIBRARIES}) diff --git a/vendor/mastodonpp b/vendor/mastodonpp deleted file mode 160000 index c48f1dc..0000000 --- a/vendor/mastodonpp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c48f1dc3d0566cef2baf96df7b3a7c55490a3e91 diff --git a/yandere.cpp b/yandere.cpp index 31746e1..1db126b 100644 --- a/yandere.cpp +++ b/yandere.cpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include @@ -203,7 +203,7 @@ void run(const std::string& configfile) std::cout << action << std::endl; std::cout << "Waiting" << std::endl; - std::this_thread::sleep_for(std::chrono::hours(1)); + std::this_thread::sleep_for(std::chrono::hours(2)); std::cout << std::endl; } -- cgit 1.4.1