Updated to use new standalone tdehw library.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 3 years ago
parent 96d9131692
commit 416977e868
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -25,6 +25,23 @@ if( WITH_GCC_VISIBILITY )
endif( WITH_GCC_VISIBILITY )
# 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" )
##### check for tdeldap
find_library( HAVE_LIBTDELDAP tdeldap )

@ -27,9 +27,10 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC
tdecore-shared
tdeui-shared
tdeio-shared
${TDEHW_LIBRARIES}
${LIBTDELDAP_LIBRARIES}
${KRB5_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

Loading…
Cancel
Save