summaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2016-03-02 00:37:11 +0100
committerAlbert Astals Cid <aacid@kde.org>2016-03-02 00:37:11 +0100
commit9d33825e6f6167f07b2739645b93249b2bc043da (patch)
tree5fac0aa20c65ff19a1797bae940002d97d917e9e /cmake/modules
parenta8853b1df0a15570dff6ecc333769257bbf874c3 (diff)
parentf3e3ebe51483050cfdf8773dbd0d6646521f17cb (diff)
Merge remote-tracking branch 'origin/signatureHandling'
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindNSS3.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/cmake/modules/FindNSS3.cmake b/cmake/modules/FindNSS3.cmake
new file mode 100644
index 00000000..657cad88
--- /dev/null
+++ b/cmake/modules/FindNSS3.cmake
@@ -0,0 +1,22 @@
+# - try to find NSS3 libraries
+# Once done this will define
+#
+# NSS_FOUND - system has NSS3
+# NSS3_CFLAGS - the NSS CFlags
+# NSS3_LIBRARIES - Link these to use NSS
+#
+# Copyright 2015 André Guerreiro, <aguerreiro1985@gmail.com>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+include(FindPackageHandleStandardArgs)
+
+if (NOT WIN32)
+ find_package(PkgConfig REQUIRED)
+
+ pkg_check_modules(NSS3 "nss>=3.19")
+
+ find_package_handle_standard_args(NSS3 DEFAULT_MSG NSS3_LIBRARIES NSS3_CFLAGS)
+
+endif(NOT WIN32)