7af5599113
Changed FFmpeg, PCSC and PulseAudio cmake find to raise an error if an required package was not found.
14 lines
384 B
CMake
14 lines
384 B
CMake
include(FindPkgConfig)
|
|
|
|
if (PKG_CONFIG_FOUND)
|
|
pkg_check_modules(PCSC libpcsclite)
|
|
endif()
|
|
|
|
find_path(PCSC_INCLUDE_DIR pcsclite.h PATHS ${PCSC_INCLUDE_DIRS}
|
|
PATH_SUFFIXES PCSC )
|
|
find_library(PCSC_LIBRARY pcsclite PATHS ${PCSC_LIBRARY_DIRS})
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCSC DEFAULT_MSG PCSC_INCLUDE_DIR PCSC_LIBRARY)
|
|
|
|
mark_as_advanced(PCSC_INCLUDE_DIR PCSC_LIBRARY)
|