tinycbor icon indicating copy to clipboard operation
tinycbor copied to clipboard

set public header include dir for fixing header prefix

Open jhlee525 opened this issue 10 months ago • 0 comments

In the previous PR(#297), the install directory for cbor.h was changed to tinycbor/cbor.h.

it causes problem when using FetchContent, since it import headers directly from the source code. (It actually placed in src/tinycbor.h).

I created a dedicated public header directory include by convention, and placed include/tinycbor/cbor.h.

Since all source files reference just cbor.h, I have to updated all include paths accordingly.

I checked tests and tools are able to compile, but not tested for all option sets.

Apologies for the big changes, If you prefer not to adopt this change, feel free to revert #297.

jhlee525 avatar Apr 24 '25 02:04 jhlee525