moved examples and tests to root directory

This commit is contained in:
tastytea 2018-03-21 23:27:10 +01:00
rodič d2398008e8
revize 55ea84c27c
Podepsáno: tastytea
ID GPG klíče: 59346E0EA35C67E5
17 změnil soubory, kde provedl 7 přidání a 7 odebrání

2
.gitignore vendorováno
Zobrazit soubor

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

Zobrazit soubor

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

Zobrazit soubor

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

Zobrazit soubor

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

Zobrazit soubor

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

Zobrazit soubor

@ -3,7 +3,7 @@
#include <iostream>
#include <cstdint>
#include "../mastodon-cpp.hpp"
#include "mastodon-cpp.hpp"
int main(int argc, char *argv[])
{