Browse Source

moved examples and tests to root directory

tags/0.8.0
tastytea 2 years ago
parent
commit
55ea84c27c
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: 59346E0EA35C67E5
17 changed files with 7 additions and 7 deletions
  1. +1
    -1
      .gitignore
  2. +2
    -2
      CMakeLists.txt
  3. +0
    -0
      examples/example01_dump_json.cpp
  4. +0
    -0
      examples/example02_parse_account.cpp
  5. +0
    -0
      examples/example03_mastocron.cpp
  6. +0
    -0
      examples/example04_update_credentials.cpp
  7. +0
    -0
      examples/example05_follow_unfollow.cpp
  8. +0
    -0
      examples/example06_toot_delete-toot.cpp
  9. +0
    -0
      examples/example07_register_app.cpp
  10. +0
    -0
      examples/example08_rate_limiting.cpp
  11. +0
    -0
      examples/example09_streaming_api.cpp
  12. +0
    -0
      examples/example10_simplify.cpp
  13. +0
    -0
      examples/example11_post_media.cpp
  14. +1
    -1
      packages/gentoo/mastodon-cpp-0.0.0.ebuild
  15. +1
    -1
      packages/gentoo/mastodon-cpp-9999.ebuild
  16. +1
    -1
      tests/test_00_library_is_loadable.cpp
  17. +1
    -1
      tests/test_01_get_instance.cpp

+ 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[])
{