diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-11-15 11:41:38 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-11-15 11:41:38 -0500 |
| commit | c51eb502c568ea2d84933b8e2445e98c81307671 (patch) | |
| tree | fa52213f63b85f01d011d5820302f04814807c07 /CMakeLists.txt | |
| parent | 9fa36f95fd33940001dcd6abee623bfe67b5d7fb (diff) | |
| download | wordplay-c51eb502c568ea2d84933b8e2445e98c81307671.tar.gz wordplay-c51eb502c568ea2d84933b8e2445e98c81307671.tar.bz2 wordplay-c51eb502c568ea2d84933b8e2445e98c81307671.zip | |
Bot now posts to Mastodon instead of Twitter
You need to install mastodonpp on your server.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 8 insertions, 4 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index fe7fd64..3f11278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -3,16 +3,20 @@ project (wordplay) | |||
| 3 | 3 | ||
| 4 | find_package(PkgConfig) | 4 | find_package(PkgConfig) |
| 5 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) | 5 | pkg_check_modules(yaml-cpp yaml-cpp REQUIRED) |
| 6 | pkg_check_modules(mastodonpp mastodonpp REQUIRED) | ||
| 6 | 7 | ||
| 7 | add_subdirectory(vendor/libtwittercpp) | ||
| 8 | add_subdirectory(vendor/verbly) | 8 | add_subdirectory(vendor/verbly) |
| 9 | 9 | ||
| 10 | include_directories( | 10 | include_directories( |
| 11 | vendor/verbly/lib | 11 | vendor/verbly/lib |
| 12 | vendor/libtwittercpp/src | 12 | ${mastodonpp_INCLUDE_DIRS} |
| 13 | ${yaml-cpp_INCLUDE_DIRS}) | 13 | ${yaml-cpp_INCLUDE_DIRS}) |
| 14 | 14 | ||
| 15 | link_directories( | ||
| 16 | ${mastodonpp_LIBRARY_DIRS} | ||
| 17 | ${yaml-cpp_LIBRARY_DIRS}) | ||
| 18 | |||
| 15 | add_executable(wordplay wordplay.cpp) | 19 | add_executable(wordplay wordplay.cpp) |
| 16 | set_property(TARGET wordplay PROPERTY CXX_STANDARD 11) | 20 | set_property(TARGET wordplay PROPERTY CXX_STANDARD 17) |
| 17 | set_property(TARGET wordplay PROPERTY CXX_STANDARD_REQUIRED ON) | 21 | set_property(TARGET wordplay PROPERTY CXX_STANDARD_REQUIRED ON) |
| 18 | target_link_libraries(wordplay verbly twitter++ ${yaml-cpp_LIBRARIES}) | 22 | target_link_libraries(wordplay verbly ${mastodonpp_LIBRARIES} ${yaml-cpp_LIBRARIES}) |
