baresip/re

cmake: add libre namespace export

alfredh opened this issue · 2 comments

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:

microsoft/vcpkg#30859

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)

I think for namespace we can maybe use the ALIAS add_library option:

add_library(libre::re ALIAS re)

closing this in favour of tracking: #786