mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 01:29:08 +08:00
17 lines
516 B
Plaintext
17 lines
516 B
Plaintext
The package sail provides CMake targets:
|
|
|
|
C libraries:
|
|
|
|
find_package(Sail CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE SAIL::sail)
|
|
|
|
C++ bindings:
|
|
|
|
find_package(Sail CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE SAIL::sail-c++)
|
|
|
|
Note for static builds on Unix-like platforms: the client application
|
|
must be built with -rdynamic or an equivalent to enable dlopen and dlsym
|
|
on the same binary. If you use CMake, this could be achieved by setting
|
|
CMAKE_ENABLE_EXPORTS to ON.
|