mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: use shared instead of static library for tests
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
4a49bf3808
commit
33144e746a
2 changed files with 3 additions and 17 deletions
|
@ -375,20 +375,6 @@ install(
|
|||
DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}
|
||||
)
|
||||
|
||||
########### static lib for tests ###############
|
||||
|
||||
if(ENABLE_TESTING)
|
||||
add_library(solid_static STATIC ${solid_LIB_SRCS})
|
||||
|
||||
target_link_libraries(solid_static
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDBUS_LIBRARY}
|
||||
${QT_QTXML_LIBRARY}
|
||||
${QT_QTGUI_LIBRARY}
|
||||
${solid_OPTIONAL_LIBS}
|
||||
)
|
||||
endif()
|
||||
|
||||
########### install files ###############
|
||||
|
||||
generate_export_header(solid)
|
||||
|
|
|
@ -13,7 +13,7 @@ include_directories(
|
|||
kde4_add_test(solid-fakehardwaretest fakehardwaretest.cpp)
|
||||
|
||||
target_link_libraries(solid-fakehardwaretest
|
||||
solid_static
|
||||
${KDE4_SOLID_LIBS}
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${QT_QTDBUS_LIBRARY}
|
||||
${QT_QTXML_LIBRARY}
|
||||
|
@ -33,7 +33,7 @@ target_link_libraries(solid-solidhwtest
|
|||
${QT_QTDBUS_LIBRARY}
|
||||
${QT_QTXML_LIBRARY}
|
||||
${QT_QTTEST_LIBRARY}
|
||||
solid_static
|
||||
${KDE4_SOLID_LIBS}
|
||||
)
|
||||
|
||||
########### solidnettestdbusservice ###############
|
||||
|
@ -63,4 +63,4 @@ qt4_add_dbus_interface(networkingclient_SRCS
|
|||
|
||||
kde4_add_manual_test(solid-networkingclient ${networkingclient_SRCS})
|
||||
|
||||
target_link_libraries(solid-networkingclient solid_static ${KDE4_KDEUI_LIBS})
|
||||
target_link_libraries(solid-networkingclient ${KDE4_SOLID_LIBS} ${KDE4_KDEUI_LIBS})
|
||||
|
|
Loading…
Add table
Reference in a new issue