CMake: Add lirc library and header detection if pkg-config file does not exist.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 0dc685b82e)
r14.0.x
Slávek Banko 2 years ago
parent a23d65252e
commit 159cf39b4d
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -56,6 +56,18 @@ endif( WITH_LAME )
if( BUILD_LIRC_PLUGIN )
pkg_search_module( LIRC lirc )
if( NOT LIRC_FOUND )
check_library_exists( lirc_client lirc_init "" HAVE_LIRC )
if( HAVE_LIRC )
check_include_file( lirc/lirc_client.h HAVE_LIRC_CLIENT_H )
if( HAVE_LIRC_CLIENT_H )
set( LIRC_FOUND 1 )
set( LIRC_LIBRARIES "lirc_client" )
endif()
endif()
endif( NOT LIRC_FOUND )
if( NOT LIRC_FOUND )
tde_message_fatal( "lirc support is requested, but was not found on your system" )
endif( NOT LIRC_FOUND )

Loading…
Cancel
Save