2012-10-17 10:14:19 +04:00
|
|
|
|
2012-01-27 05:13:08 +04:00
|
|
|
include(FindPkgConfig)
|
|
|
|
|
2012-10-17 10:14:19 +04:00
|
|
|
if(PKG_CONFIG_FOUND)
|
|
|
|
pkg_check_modules(PULSE libpulse)
|
2012-01-27 05:13:08 +04:00
|
|
|
endif()
|
|
|
|
|
2012-10-17 10:14:19 +04:00
|
|
|
find_path(PULSE_INCLUDE_DIR pulse/pulseaudio.h PATHS ${PULSE_INCLUDE_DIRS} PATH_SUFFIXES pulse )
|
|
|
|
find_library(PULSE_LIBRARY pulse PATHS ${PULSE_LIBRARY_DIRS})
|
|
|
|
|
2012-11-03 03:27:01 +04:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Pulse DEFAULT_MSG PULSE_INCLUDE_DIR PULSE_LIBRARY)
|
2012-01-27 05:13:08 +04:00
|
|
|
|
2012-10-17 10:14:19 +04:00
|
|
|
mark_as_advanced(PULSE_INCLUDE_DIR PULSE_LIBRARY)
|
2012-01-27 05:13:08 +04:00
|
|
|
|