Commit 44aa4f0
feat(cmake): add export support (#523)
* feat: add export support
This makes sdbus-c++ consumable from the build tree without the need for
an explicit installation. This can be very handy for e.g. testing
purposes. Crucially, downstream projects will depend on upstream to
properly export everything. Otherwise, they can't be built as static
libraries, even if sdbus-c++ is only a private dependency.
See also https://runebook.dev/en/docs/cmake/command/export
* fix(cmake): avoid possibly empty EXPORT_SET
EXPORT_SET is empty when SDBUSCPP_INSTALL is OFF,
which leads to targets file with no targets.
---------
Co-authored-by: Stanislav Angelovič <stanislav.angelovic@protonmail.com>1 parent 6715ef1 commit 44aa4f0
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
288 | 301 | | |
289 | 302 | | |
290 | 303 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | 304 | | |
296 | 305 | | |
297 | 306 | | |
| |||
0 commit comments