Browse Source

moved examples and tests to root directory

tags/0.8.0
tastytea 1 year ago
parent
commit
55ea84c27c
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: 59346E0EA35C67E5

+ 1
- 1
.gitignore View File

@@ -1,4 +1,4 @@
/build/
/doc/
/update_gh-pages.sh
/src/examples/example99*
/examples/example99*

+ 2
- 2
CMakeLists.txt View File

@@ -70,7 +70,7 @@ endif()

# Examples
if(WITH_EXAMPLES)
file(GLOB sources_examples src/examples/*.cpp)
file(GLOB sources_examples examples/*.cpp)
foreach(src ${sources_examples})
get_filename_component(bin ${src} NAME_WE)
add_executable(${bin} ${src})
@@ -81,7 +81,7 @@ endif()
# Tests
if(WITH_TESTS)
include(CTest)
file(GLOB sources_tests src/tests/test_*.cpp)
file(GLOB sources_tests tests/test_*.cpp)
foreach(src ${sources_tests})
get_filename_component(bin ${src} NAME_WE)
add_executable(${bin} ${src})

src/examples/example01_dump_json.cpp → examples/example01_dump_json.cpp View File


src/examples/example02_parse_account.cpp → examples/example02_parse_account.cpp View File


src/examples/example03_mastocron.cpp → examples/example03_mastocron.cpp View File


src/examples/example04_update_credentials.cpp → examples/example04_update_credentials.cpp View File


src/examples/example05_follow_unfollow.cpp → examples/example05_follow_unfollow.cpp View File


src/examples/example06_toot_delete-toot.cpp → examples/example06_toot_delete-toot.cpp View File


src/examples/example07_register_app.cpp → examples/example07_register_app.cpp View File


src/examples/example08_rate_limiting.cpp → examples/example08_rate_limiting.cpp View File


src/examples/example09_streaming_api.cpp → examples/example09_streaming_api.cpp View File


src/examples/example10_simplify.cpp → examples/example10_simplify.cpp View File


src/examples/example11_post_media.cpp → examples/example11_post_media.cpp View File


+ 1
- 1
packages/gentoo/mastodon-cpp-0.0.0.ebuild View File

@@ -44,7 +44,7 @@ src_install() {

if use examples; then
docinto examples
for file in src/examples/*.cpp; do
for file in examples/*.cpp; do
dodoc ${file}
done
fi

+ 1
- 1
packages/gentoo/mastodon-cpp-9999.ebuild View File

@@ -52,7 +52,7 @@ src_install() {

if use examples; then
docinto examples
for file in src/examples/*.cpp; do
for file in examples/*.cpp; do
dodoc ${file}
done
fi

src/tests/test_00_library_is_loadable.cpp → tests/test_00_library_is_loadable.cpp View File

@@ -1,7 +1,7 @@
/* This file is part of mastodon-cpp.
*/

#include "../mastodon-cpp.hpp"
#include "mastodon-cpp.hpp"

int main(int argc, char *argv[])
{

src/tests/test_01_get_instance.cpp → tests/test_01_get_instance.cpp View File

@@ -3,7 +3,7 @@

#include <iostream>
#include <cstdint>
#include "../mastodon-cpp.hpp"
#include "mastodon-cpp.hpp"

int main(int argc, char *argv[])
{

Loading…
Cancel
Save