diff --git a/CMakeLists.txt b/CMakeLists.txt index 35e5c88..17ec440 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ set_target_properties(mastodon-cpp PROPERTIES SOVERSION ${mastodon-cpp_VERSION_MAJOR} ) install(TARGETS mastodon-cpp DESTINATION lib) -target_link_libraries(mastodon-cpp pthread boost_system ssl crypto) +target_link_libraries(mastodon-cpp boost_system ssl crypto) install(FILES ${PROJECT_SOURCE_DIR}/src/lib/mastodon-cpp.hpp DESTINATION include) # Example client diff --git a/README.md b/README.md index 3659cfd..e315f29 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,12 @@ instead. The reference can be generated with `build_doc.sh`, if doxygen is installed. Or just look in `src/mastodon-cpp.hpp`. There is an example in `src/example`. +## Compiling your project + +After you did a `make install`, a project consisting of one file can be compiled as follows: + + g++ -std=c++14 -lmastodon-cpp -lboost_system -lssl -lcrypto example.cpp + ## Error codes | Code | Explanation |