blob: 6f06da874fbbb1b5747c6b609d6205203fce1814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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.
|