anotherim-desktop/cmake/FindSignalProtocol.cmake
Marvin W 55b148a0f7
Use system provided libsignal-protocol-c by default
You can still compile in tree by using --with-libsignal-in-tree flag
2020-01-21 21:55:08 +01:00

12 lines
364 B
CMake

include(PkgConfigWithFallback)
find_pkg_config_with_fallback(SignalProtocol
PKG_CONFIG_NAME libsignal-protocol-c
LIB_NAMES signal-protocol-c
INCLUDE_NAMES signal/signal_protocol.h
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SignalProtocol
REQUIRED_VARS SignalProtocol_LIBRARY
VERSION_VAR SignalProtocol_VERSION)