fix: readme using cmake

This commit is contained in:
kuoi 2023-07-18 16:42:35 +08:00
parent dacaf7828b
commit faeaf710d0

View file

@ -60,13 +60,9 @@ Convert TNT output tree file without tags and taxname, e.g. `winclada.tre` produ
### Linux & Unix ### Linux & Unix
``` ```
g++ tnt2winclada.cpp -o tnt2winclada mkdir -p build && cd build
``` cmake ..
make && make install
or
```
clang++ -o tnt2winclada tnt2winclada.cpp
``` ```
### Windows ### Windows
@ -82,3 +78,22 @@ tnt2winclada -i ${input_file} -o ${output_file}
``` ```
Interactive commands are also available. 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 <filename> input a TNT output tree from the specified file
output <filename> output a winclada accessible tree file
quit quit the program
exit exit the program
tnt2winclada>
```