C++ core tools (UUID class, hash functions, htow/wtoh...)
Binaries:
- A C++20 compiler (ex: g++-13)
- CMake 3.26 or later
Testing Libraries (optional):
- Google Test 1.13 or later (optional)
git clone https://github.com/arapelle/arba-core --recurse-submodules
There is a cmake script at the root of the project which builds the library in Release mode and install it (default options are used).
cd /path/to/arba-core
cmake -P cmake/scripts/quick_install.cmake
Use the following to quickly install a different mode.
cmake -P cmake/scripts/quick_install.cmake -- TESTS BUILD Debug DIR /tmp/local
There is a uninstall cmake script created during installation. You can use it to uninstall properly this library.
cd /path/to/installed-arba-core/
cmake -P uninstall.cmake
#include <arba/core/uuid.hpp>
#include <iostream>
int main()
{
core::uuid id("f192c2c7-1e5e-4211-b540-b40ba0009624");
std::cout << id << std::endl;
return EXIT_SUCCESS;
}
See basic_cmake_project in example, and more specifically the CMakeLists.txt to see how to use arba-core in your CMake projects.
MIT License © arba-core