Custom variants for cpp-library

I’ve combed the examples and discussions and haven’t found a way to implement custom variants for a cpp-library.

In addition to the platforms, what I need is:
debug - PIC
release - PIC
debug - non-PIC
release - non-PIC

Can I add a dimension so that both PIC and non-PIC versions get compiled and published?