diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-06-28 16:13:49 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2021-07-02 17:30:02 +0200 |
commit | d0e4d47caed252840a0f9986a1a18ab7bf451ddb (patch) | |
tree | 939dabe4b69e2bf0c14fc93ee3d5f093f6d77565 /kopete/ConfigureChecks.cmake | |
parent | 7a3a7896b3c96bee076ed0da65d10eec7fc06b85 (diff) | |
download | tdenetwork-feat/add_kopete-otr_plugin.tar.gz tdenetwork-feat/add_kopete-otr_plugin.zip |
Add kopete-otr plugin to kopete.feat/add_kopete-otr_plugin
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'kopete/ConfigureChecks.cmake')
-rw-r--r-- | kopete/ConfigureChecks.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kopete/ConfigureChecks.cmake b/kopete/ConfigureChecks.cmake index c8e03e06..6581c08a 100644 --- a/kopete/ConfigureChecks.cmake +++ b/kopete/ConfigureChecks.cmake @@ -64,3 +64,18 @@ endif( ) ### Check for tm_gmtoff in tm struct check_struct_has_member( "struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF ) + +#### check for libotr + +if( BUILD_KOPETE_PLUGIN_OTR ) + pkg_search_module( LIBOTR libotr ) + + if( LIBOTR_FOUND ) + if( NOT LIBOTR_VERSION VERSION_LESS 4.0.0 ) + set( HAVE_LIBOTR_0400 1 ) + endif() + else() + tde_message_fatal( "Libotr is required but was not found on your system" ) + endif() +endif( BUILD_KOPETE_PLUGIN_OTR ) + |