A header-only C++ utility class library.
If you are using Homebrew package control system on Mac, you can easily install CxxUtilities via tap yuasatakayuki/hxisgd. Execute the following:
brew tap yuasatakayuki/hxisgd brew install cxxutilitiesIn this case, the library will be installed to /usr/local/include/CxxUtilities (default location of Homebrew).
When newer version released, you can upgrade by just executing:
brew upgrade cxxutilities
CxxUtilities can be installed using cmake. Execute the following:
download CxxUtilities zip archive from github cd CxxUtilities mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/include make install
This will install the library to /usr/local/include/CxxUtilities. If you would like to install other locations, modify CMAKE_INSTALL_PREFIX value.
Include the top-level header file in your source.
#include "CxxUtilities/CxxUtilities.hh"This will include all CxxUtilities files.
Since CxxUtilities requires C++11 compiler, set compiler options properly.
clang++
clang++ -std=c++11 -stdlib=libc++ yourApplication.cc -o yourApplication
gcc
g++ -std=c++11 yourApplication.cc -o yourApplication
If you installed CxxUtilities to non-default include path, you need to put an additional include path option like "-I/home/username/include".
CxxUtilities is used by SpaceWire RMAP Library, adcboxgui, Software SMU Simulator, and other projects.
- Takayuki Yuasa (takayuki.yuasa@riken.jp)