summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2022-07-10 12:07:06 +0200
committerSlávek Banko <[email protected]>2022-07-10 12:07:06 +0200
commit0dc685b82e3e2733cf3f15c5cb6a6bb9939e93aa (patch)
tree062a5a44b0b8860cffac1cdace9a264d75cc06ba /ConfigureChecks.cmake
parentb161c0d4dd31a00a47443da421cbf099f991afd6 (diff)
downloadtderadio-0dc685b82e3e2733cf3f15c5cb6a6bb9939e93aa.tar.gz
tderadio-0dc685b82e3e2733cf3f15c5cb6a6bb9939e93aa.zip
CMake: Add lirc library and header detection if pkg-config file does not exist.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 5a14d7f..4750658 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -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 )