2 # Once done this will define
4 # NSPR_FOUND - system has NSPR
5 # NSPR_INCLUDE_DIRS - the NSPR include directory
6 # NSPR_LIBRARIES - Link these to use NSPR
7 # NSPR_DEFINITIONS - Compiler switches required for using NSPR
9 # Copyright (c) 2010 Andreas Schneider <asn@redhat.com>
11 # Redistribution and use is allowed according to the terms of the New
13 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
17 if (NSPR_LIBRARIES AND NSPR_INCLUDE_DIRS)
20 else (NSPR_LIBRARIES AND NSPR_INCLUDE_DIRS)
21 find_package(PkgConfig)
23 pkg_check_modules(_NSPR nspr)
24 endif (PKG_CONFIG_FOUND)
26 find_path(NSPR_INCLUDE_DIR
40 find_library(PLDS4_LIBRARY
51 find_library(PLC4_LIBRARY
62 find_library(NSPR4_LIBRARY
98 include(FindPackageHandleStandardArgs)
99 find_package_handle_standard_args(NSPR DEFAULT_MSG NSPR_LIBRARIES NSPR_INCLUDE_DIRS)
101 # show the NSPR_INCLUDE_DIRS and NSPR_LIBRARIES variables only in the advanced view
102 mark_as_advanced(NSPR_INCLUDE_DIRS NSPR_LIBRARIES)
104 endif (NSPR_LIBRARIES AND NSPR_INCLUDE_DIRS)