cmake: add libre namespace export
alfredh opened this issue · 2 comments
alfredh commented
When adding libre package to VCPKG, we have found some issues:
- Header files are missing from the CMake export / config
- Namespace is not used
The feedback from the vcpkg maintainers can be found in the last comment:
Regarding adding namespace, it should be possible to add
something like libre::libre
and the application can use:
find_package(re REQUIRED)
target_link_libraries(main PRIVATE libre::libre)
sreimers commented
I think for namespace we can maybe use the ALIAS
add_library option:
add_library(libre::re ALIAS re)