mirror of https://github.com/cutefishos/calamares
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
CMake
38 lines
1.0 KiB
CMake
# Locate libpwquality
|
|
# https://github.com/libpwquality/libpwquality
|
|
#
|
|
# This module defines
|
|
# LibPWQuality_FOUND
|
|
# LibPWQuality_LIBRARIES, where to find the library
|
|
# LibPWQuality_INCLUDE_DIRS, where to find pwquality.h
|
|
#
|
|
include(FindPkgConfig)
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
pkg_search_module(pc_pwquality QUIET pwquality)
|
|
|
|
find_path(LibPWQuality_INCLUDE_DIR
|
|
NAMES pwquality.h
|
|
PATHS ${pc_pwquality_INCLUDE_DIRS}
|
|
)
|
|
find_library(LibPWQuality_LIBRARY
|
|
NAMES pwquality
|
|
PATHS ${pc_pwquality_LIBRARY_DIRS}
|
|
)
|
|
if(pc_pwquality_FOUND)
|
|
set(LibPWQuality_LIBRARIES ${LibPWQuality_LIBRARY})
|
|
set(LibPWQuality_INCLUDE_DIRS ${LibPWQuality_INCLUDE_DIR} ${pc_pwquality_INCLUDE_DIRS})
|
|
endif()
|
|
|
|
find_package_handle_standard_args(LibPWQuality DEFAULT_MSG
|
|
LibPWQuality_INCLUDE_DIRS
|
|
LibPWQuality_LIBRARIES
|
|
)
|
|
mark_as_advanced(LibPWQuality_INCLUDE_DIRS LibPWQuality_LIBRARIES)
|
|
|
|
set_package_properties(
|
|
LibPWQuality PROPERTIES
|
|
DESCRIPTION "Password quality checking library"
|
|
URL "https://github.com/libpwquality/libpwquality"
|
|
)
|