Skip to content

Commit e773803

Browse files
committed
Added meson test
1 parent a19878a commit e773803

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

examples/SimpleTest.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <iostream>
22
#include <cstdlib>
3-
#include <ByteConvert/ByteConvert.hpp>
3+
// Use: #include <ByteConvert/ByteConvert.hpp>
4+
// For testing
5+
#include "../libbyteconvert/ByteConvert.hpp"
46

57
using namespace std;
68

examples/meson.build

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SimpleTest = executable('SimpleTest','SimpleTest.cpp',
2+
link_with: mylib)
3+
test('SimpleTest',SimpleTest)

meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ pkg.generate(libraries : mylib,
1313
filebase : 'byteconvert',
1414
description : 'A conversion library.',
1515
url: 'https://github.com/SloCompTech/ByteConvert_cpp')
16+
17+
subdir('examples')

0 commit comments

Comments
 (0)