FindNSS.cmake 510 B

123456789101112131415
  1. find_path(NSS_INCLUDE_DIR nss/nss.h)
  2. find_path(NSPR_INCLUDE_DIR nspr/nspr.h)
  3. set(NSS_INCLUDE_DIRS "${NSS_INCLUDE_DIR}/nss" "${NSPR_INCLUDE_DIR}/nspr")
  4. find_library(NSS3_LIBRARY nss3)
  5. find_library(NSPR4_LIBRARY nspr4)
  6. set(NSS_LIBRARIES "${NSS3_LIBRARY}" "${NSPR4_LIBRARY}")
  7. include(FindPackageHandleStandardArgs)
  8. find_package_handle_standard_args(NSS DEFAULT_MSG
  9. NSS3_LIBRARY NSS_INCLUDE_DIR NSPR4_LIBRARY NSPR_INCLUDE_DIR)
  10. mark_as_advanced(NSS_INCLUDE_DIR NSPR_INCLUDE_DIR NSS3_LIBRARY NSPR4_LIBRARY)