Adds modern CMake support, allowing SheenBidi to be used as a subproject from a CMake project (e.g. via FetchContent), with support for installation, the test suite, and a GitHub Actions workflow.
Fixes #26
Installation
Allows installing the library via CMake, which also installs CMake package definitions, enabling the use of find_package(SheenBidi):
Internal ctest changing into directory: /home/gleb/SheenBidi/build
Test project /home/gleb/SheenBidi/build
Start 1: tests
1/1 Test #1: tests ............................ Passed 17.07 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 17.07 sec
GitHub Actions
A GitHub Action builds all targets and runs the tests.
Adds modern CMake support, allowing SheenBidi to be used as a subproject from a CMake project (e.g. via
FetchContent
), with support for installation, the test suite, and a GitHub Actions workflow.Fixes #26
Installation
Allows installing the library via CMake, which also installs CMake package definitions, enabling the use of
find_package(SheenBidi)
:Additionally, this also allows testing via CMake and adds a GitHub Actions workflow.
Testing
Enables sanitizers in Debug build by default. Sanitizers run in the test suite and can catch undefined behaviour and memory errors.
The test suite can be run via CTest (the CMake test runner):
GitHub Actions
A GitHub Action builds all targets and runs the tests.
/cc @BLooperZ @AJenbo