Added compiling instructions

This commit is contained in:
tastytea 2018-01-13 16:32:43 +01:00
parent 080cbad43f
commit 4f7e4583fd
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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 |