Minimal boilerplate to kickstart a C++17 project using the qb framework (actor model-based).
- C++17 compiler (GCC ≥ 7, Clang ≥ 4, MSVC ≥ 19.11, or Xcode ≥ 10.2)
- CMake ≥ 3.13
qb/
directory with the qb framework clonedqbm/
directory with qb modules (e.g.,qbm-http
)- Optional: enable tests with
-DQB_BUILD_TEST=ON
/
├── qb/ ← qb framework
├── qbm/ ← qb modules (e.g., qbm-http)
├── examples/ ← usage examples
├── src/main.cpp ← main application entry point
├── test/ ← unit tests (optional)
└── CMakeLists.txt ← build configuration
From the project root:
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DQB_BUILD_TEST=ON ..
make
- The resulting binary will be:
build/qb-sample-project
- To skip tests: omit the
-DQB_BUILD_TEST
flag
If compiled with tests enabled:
cd build
ctest --output-on-failure
This project links with:
- qb-core (core runtime)
- qbm-http (HTTP module)
Handled via CMake:
target_link_libraries(qb-sample-project qb-core qbm-http)
- qb: C++ Actor Model framework for scalable concurrency
- See
examples/
for reference use cases - For advanced CMake setups: awesome-cmake
- Add your sources to
src/
, custom modules toqbm/
- Update
target_link_libraries()
in CMake as needed - Enable extra build options (e.g.
-DQB_BUILD_BENCHMARK=ON
) if supported
Apache‑2.0 (see qb/LICENSE
)
- Fork this repo
- Create a feature branch:
feature/your-change
- Add code, tests, docs
- Open a Pull Request
This README provides a quick reference for building and extending a project using qb. If you need help integrating new modules, CI/CD, or packaging—ask directly.