Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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.

Using x-search

Include into C++ (CMake) Project using git modules

  1. 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
  1. Add the following snippet to yourCMakeList.txt file:
add_subdirectory(third_party/x-search)include_directories(third_party/x-search/include)
  1. Includex-search components into your source files:
// example.cpp#include<xsearch/xsearch.h>// ...
  1. Link the x-search library:
add_executable(exampleexample.cpp)target_link_libraries(examplePRIVATExsearch)

Developer Guide

  1. Clone the repository:
git clone https://github.com/lfreist/x-search
  1. Start programming
  2. Check the style of the source files:make check_style
  3. Run tests:make test

x-search: A C++ Library for Fast External String Search

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp