File: FindNSS3.cmake

package info (click to toggle)
poppler 26.01.0-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 18,984 kB
  • sloc: cpp: 166,738; ansic: 34,768; python: 367; sh: 82; makefile: 38
file content (19 lines) | stat: -rw-r--r-- 674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# - try to find NSS3 libraries
# Once done this will define
#
#  NSS3_FOUND - system has NSS3
#  PkgConfig::NSS3 - Use this in target_link_libraries to bring both includes and link libraries
#
# Copyright 2015 André Guerreiro, <aguerreiro1985@gmail.com>
# Copyright 2022 Albert Astals Cid, <aacid@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

include(FindPackageHandleStandardArgs)

find_package(PkgConfig REQUIRED)

pkg_check_modules(NSS3 IMPORTED_TARGET "nss>=${NSS3_FIND_VERSION}")

find_package_handle_standard_args(NSS3 DEFAULT_MSG NSS3_LIBRARIES NSS3_CFLAGS)