summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-05-07 16:23:04 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-07 16:23:04 +0200
commit69e6b34bab6fe9cf118d50a7aecc8eda9239f8c1 (patch)
treef211cf5daacb24b78c56bc5fc75f945e7de7e481 /ConfigureChecks.cmake
parent804f6a4d46fa519558a321c4f86c72fd11610759 (diff)
downloadk3b-69e6b34bab6fe9cf118d50a7aecc8eda9239f8c1.tar.gz
k3b-69e6b34bab6fe9cf118d50a7aecc8eda9239f8c1.zip
Updated to use new standalone tdehw library.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index b3f7522..8ae2dad 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -100,6 +100,26 @@ if ( WITH_SYSTEM_LIBSAMPLERATE )
endif ( )
+##### tdehwlib ##################################
+
+if( WITH_TDEHWLIB )
+ tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" )
+ check_cxx_source_compiles( "
+ #include <kdemacros.h>
+ #ifndef __TDE_HAVE_TDEHWLIB
+ #error tdecore is not build with tdehwlib
+ #endif
+ int main() { return 0; } "
+ HAVE_TDEHWLIB
+ )
+ tde_restore( CMAKE_REQUIRED_INCLUDES )
+ if( NOT HAVE_TDEHWLIB )
+ tde_message_fatal( "tdehwlib is required, but not built in tdecore" )
+ endif( NOT HAVE_TDEHWLIB )
+ set( TDEHW_LIBRARIES "tdehw-shared" )
+endif( )
+
+
##### hal #######################################
if( WITH_HAL )