- Notifications
You must be signed in to change notification settings - Fork0
Installation
Leon Freist edited this pageMar 25, 2023 ·2 revisions
This chapter will guide you through the installation for usage within another C++ (CMake) project and for developing x-search.
- Clone the repository into your projects root directory
mkdir third_partygit submodule add https://github.com/lfreist/x-search third_party/git submodule update --init --recursive
- Add the following snippet to your
CMakeList.txt
file:
add_subdirectory(third_party/x-search)include_directories(third_party/x-search/include)
- Include
x-search
components into your source files:
// example.cpp#include<xsearch/xsearch.h>// ...
- Link the x-search library:
add_executable(exampleexample.cpp)target_link_libraries(examplePRIVATExsearch)
- Clone the repository:
git clone https://github.com/lfreist/x-search
- Start programming
- Check the style of the source files:
make check_style
- Run tests:
make test
x-search: A C++ Library for Fast External String Search