A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/demianmnave/CML below:

demianmnave/CML: The Configurable Math Library

Configurable Math Library

For CML version 1, please see https://github.com/demianmnave/CML1.

The Configurable Math Library (CML) is released under the Boost Software License, Version 1.0..

As it is header-only, it is simple enough to copy the cml header directory into your project and setup your build to reference it. Users of CMake 3.15+ can also leverage cmake --install ... and find_package(CML CONFIG) to integrate CML into a CMake project.

The CML requires a compiler with C++17 support.

Building and Running Tests

To run the test suite from a command prompt using a Makefile-like generator, start in your build directory and execute:

cmake -S \<path to cml-root\> -G{generator name} -DBUILD_TESTING=On -DCMAKE_BUILD_TYPE=Release

Then, to build the tests (again from your build directory):

cmake --build . --config Release

You can run the full test suite from your build directory by executing:

If you have multiple CPUs (e.g. 4 in this case), you can speed things up a bit using, for example:

cmake --build . --config Release -- -j4
ctest -C Release -j4

See CMakePresets.json for the default base presets, as well as the predefined configure and build presets. Note that all of the predefined configure presets generate a build system under <cml-root>/.build/<preset-name>.

To see the available configure presets, execute:

To see the available build presets, execute:

cmake --build --list-presets

To use one of the predefined configure presets, for example cml-dev-msvc17-clangcl-mt-s to use the Visual Studio 2022 IDE with ClangCL:

cmake --preset=cml-dev-msvc17-clangcl-mt-s

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4