- shared object library
bin/libasdf.so
, - A command line binary
bin/sample
, which links with the library, - An executable unit test
bin/asdf_tests
- An optional BASH build script
build-and-run
that you can use to quickly test if the project compiles, and runs.
You will need:
- A modern C/C++ compiler
- CMake 3.1+ installed (on a Mac, run
brew install cmake
)
❯ bin/asdf_tests
TODO:
### Using it as a C++ Library
We build a shared object, c++ usage:
```cpp
src/*
— C++ code that ultimately compiles into a shared objecttest/lib
— C++ libraries used for teststest/src
— C++ test suitebin/
,lib
,include
are all empty directories, until themake install
install the project artifacts there.
Tests:
- A
test
folder with the automated tests and fixtures that mimics the directory structure ofsrc
. - For every C++ file in
src/A/B/<name>.cpp
there is a corresponding test filetest/A/B/<name>_test.cpp
- Tests compile into a single binary
test/bin/runner
that is run on a command line to run the tests.
Open sourced under MIT license, the terms of which can be read here — MIT License.