moved examples and tests to root directory

This commit is contained in:
tastytea 2018-03-21 23:27:10 +01:00
父節點 d2398008e8
當前提交 55ea84c27c
簽署人: tastytea
GPG Key ID: 59346E0EA35C67E5
共有 17 個文件被更改,包括 7 次插入7 次删除

2
.gitignore vendored
查看文件

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

查看文件

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

查看文件

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

查看文件

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

查看文件

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

查看文件

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