diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-05-09 15:43:06 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-05-09 15:43:06 +0200 |
commit | 7ccc7470c727d86aea8bf3f6873fbc4c0a18105b (patch) | |
tree | 124e4e91644abe71146c1464f0608ff4efb59179 | |
parent | 661158c53cf9f2a910b1a470fc9ee4ebebaa740f (diff) | |
download | libtdeldap-7ccc7470c727d86aea8bf3f6873fbc4c0a18105b.tar.gz libtdeldap-7ccc7470c727d86aea8bf3f6873fbc4c0a18105b.zip |
Updated to use new standalone tdehw library.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | ConfigureChecks.cmake | 18 | ||||
-rw-r--r-- | src/CMakeLists.txt | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 24e2a7a..a95ccf4 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -109,3 +109,21 @@ check_cxx_compiler_flag( -fpermissive HAVE_PERMISSIVE_SUPPORT ) if( HAVE_PERMISSIVE_SUPPORT ) set( ENABLE_PERMISSIVE_FLAG "-fpermissive" ) endif( ) + + +##### check for 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" ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8395331..4c5715b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,6 +28,7 @@ tde_add_library( tdeldap SHARED AUTOMOC tdeui-shared tdecore-shared tdeio-shared + ${TDEHW_LIBRARIES} tdesu krb5 kadm5clnt kadm5srv hdb lber ldap |