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. --- CMakeLists.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') 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}) -- cgit 1.4.1