summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_cpplibrary/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'veslibrary/ves_cpplibrary/src/Makefile')
-rw-r--r--veslibrary/ves_cpplibrary/src/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/veslibrary/ves_cpplibrary/src/Makefile b/veslibrary/ves_cpplibrary/src/Makefile
new file mode 100644
index 0000000..b0bc5eb
--- /dev/null
+++ b/veslibrary/ves_cpplibrary/src/Makefile
@@ -0,0 +1,20 @@
+all:
+ mkdir build
+ cd build; cmake ..; make; make install
+
+.PHONY : test
+test:
+ mkdir build
+ cd build; cmake .. -DENABLE_COVERAGE=ON; make; make install
+ mkdir test/build
+ cd test/build; cmake .. -DENABLE_COVERAGE=ON; make; ./xtest
+ lcov -c -d build/lib/encode/CMakeFiles/xencode.dir -d build/lib/transport/CMakeFiles/xtransport.dir -o coverage.info
+ lcov -r coverage.info '/usr/*' '*/transport/gen-cpp/*' -o xvesagent.info
+ genhtml xvesagent.info -o coverage
+ rm -rf *.info
+
+clean:
+ rm *.info -rf
+ rm build -rf
+ rm coverage -rf
+ rm test/build -rf