添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

[libsecret] Lack of CMake target #27822

@illera88

Description


Is your feature request related to a problem? Please describe.
When you install a package you normally get the commands need to be used in your CMakelist.txt to find the installed package but there is nothing when libsecret is installed. Example:

sqlite3 provides CMake targets:

# this is heuristically generated, and may not be correct
find_package(unofficial-sqlite3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3)

How should I look for libsecret in CMake if installed using vcpkg?

Proposed solution
Generate a target for libsecret so all its dependencies can be linked into a project using libsecret

Describe alternatives you've considered
Individually link all the dependency libraries from libsecret