From faeaf710d0bfc8a309b6014463d4a1df97481fa5 Mon Sep 17 00:00:00 2001 From: Kuoi Date: Tue, 18 Jul 2023 16:42:35 +0800 Subject: [PATCH] fix: readme using cmake --- README.md | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f1765d3..c8de96a 100644 --- a/README.md +++ b/README.md @@ -60,13 +60,9 @@ Convert TNT output tree file without tags and taxname, e.g. `winclada.tre` produ ### Linux & Unix ``` -g++ tnt2winclada.cpp -o tnt2winclada -``` - -or - -``` -clang++ -o tnt2winclada tnt2winclada.cpp +mkdir -p build && cd build +cmake .. +make && make install ``` ### Windows @@ -82,3 +78,22 @@ tnt2winclada -i ${input_file} -o ${output_file} ``` Interactive commands are also available. + +``` +tnt2winclada + +~|~|\ |~|~ ~) | |o._ |~| _ _| _ + | | \| | /_ \/\/ || ||_|(_|(_|(_| +TNT2WinClada +MIT, Guoyi Zhang, 2023 +please type help to see more commands + +tnt2winclada> help +help show interactive commands help +input input a TNT output tree from the specified file +output output a winclada accessible tree file +quit quit the program +exit exit the program + +tnt2winclada> +```