Added compiling instructions
This commit is contained in:
parent
080cbad43f
commit
4f7e4583fd
|
@ -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
|
||||
|
|
|
@ -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 |
|
||||
|
|
Reference in New Issue