added README to examples and improved database version check when used from Sourcetrail
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
## Poetry Indexer Example
|
||||
|
||||
### Requirements
|
||||
|
||||
* CMake
|
||||
* C++ Compiler
|
||||
|
||||
### Building
|
||||
|
||||
* Run cmake with `BUILD_EXAMPLES=ON`
|
||||
* Build target `poetry_indexer`
|
||||
|
||||
### Running from Command Line
|
||||
|
||||
Invoke binary located in the build directory:
|
||||
|
||||
```
|
||||
$ poetry_indexer path/to/database_file.srctrldb path/to/examples/cpp_poetry_indexer/data/e_e_cummings_-_in_just-.txt
|
||||
```
|
||||
|
||||
### Running with Sourcetrail
|
||||
|
||||
Open `poetry_indexer.srctrlprj` located in the build directory with Sourcetrail and index the project.
|
||||
Reference in New Issue
Block a user