Skip to content

cmake: Export namespaced library targets#307

Merged
ethanmusser merged 5 commits into
carnegierobotics:masterfrom
ethanmusser:ethanmusser/306-cmake-exported-targets-are-not-namespaced
Jun 15, 2026
Merged

cmake: Export namespaced library targets#307
ethanmusser merged 5 commits into
carnegierobotics:masterfrom
ethanmusser:ethanmusser/306-cmake-exported-targets-are-not-namespaced

Conversation

@ethanmusser

Copy link
Copy Markdown
Contributor

Update CMake to export namespaced targets, conforming to the modern library standard practice. Behavior is preserved for consumers using the legacy, unnamespaced targets via new interface libraries generated in the package configuration files. Also update all in-library links to use the namespaced targets.

Now, users of LibMultiSense will consume it as follows.

find_package(MultiSense)
add_library(MyLib my_lib.cpp)
target_link_libraries(MyLib PRIVATE MultiSense::MultiSense)

Resolves #306.

@ethanmusser ethanmusser self-assigned this Jun 12, 2026
@ethanmusser ethanmusser added the enhancement New feature or request label Jun 12, 2026
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ethanmusser ethanmusser enabled auto-merge (squash) June 15, 2026 19:16
@ethanmusser ethanmusser merged commit 4a58673 into carnegierobotics:master Jun 15, 2026
25 checks passed
@ethanmusser ethanmusser deleted the ethanmusser/306-cmake-exported-targets-are-not-namespaced branch June 15, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cmake: Exported targets are not namespaced

2 participants