Commit 00a321ca authored by Thomas Zander's avatar Thomas Zander

Fix libs we are linking to to be more sane.

CMake allows us to define that a library usage implies linking against other
libs so an application doesn't have to hunt down all dependencies itself.
Effectively we create a hierarchy of libs.

This patch cleans up all cmake files to correctly only specifiy the library
we depend on and let the other libs be implied by the hierarchy defined in
the cmake file of the lib we link to.
I also tried to clean out the libs we link to to only the ones we really
need.  You'd be surprised how often people link to libs that they don't need.

svn path=/trunk/koffice/; revision=1016614
parent f6d823ce
......@@ -10,7 +10,7 @@ set(kochart_LIB_SRCS koChart.cc)
kde4_add_library(kochart SHARED ${kochart_LIB_SRCS})
target_link_libraries(kochart ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KDECORE_LIBS} komain )
target_link_libraries(kochart komain )
set_target_properties(kochart PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install(TARGETS kochart ${INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -18,7 +18,7 @@ kde4_add_plugin(kritaimagesize ${kritaimagesize_PART_SRCS})
target_link_libraries(kritaimagesize kritaui)
target_link_libraries(kritaimagesize kritaui koaspectbutton)
install(TARGETS kritaimagesize DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -14,7 +14,7 @@ kde4_add_plugin(kritablurfilter ${kritablurfilter_PART_SRCS})
target_link_libraries(kritablurfilter kritaui)
target_link_libraries(kritablurfilter kritaui koaspectbutton)
install(TARGETS kritablurfilter DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -6,7 +6,7 @@ kde4_add_ui_files(kritabumpmap_PART_SRCS wdgbumpmap.ui)
kde4_add_plugin(kritabumpmap ${kritabumpmap_PART_SRCS})
target_link_libraries(kritabumpmap kritaui)
target_link_libraries(kritabumpmap kritaui kodocumentsectionbox)
install(TARGETS kritabumpmap DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -21,7 +21,7 @@ set(kritalibbrush_LIB_SRCS
kde4_add_library(kritalibbrush SHARED ${kritalibbrush_LIB_SRCS} )
target_link_libraries(kritalibbrush kritaui)
target_link_libraries(kritalibbrush kritaui )
target_link_libraries(kritalibbrush LINK_INTERFACE_LIBRARIES kritaui)
set_target_properties(kritalibbrush PROPERTIES
......
......@@ -38,7 +38,7 @@ kde4_add_ui_files(kritalibpaintop_LIB_SRCS
kde4_add_library(kritalibpaintop SHARED ${kritalibpaintop_LIB_SRCS} )
target_link_libraries(kritalibpaintop kritalibbrush kritaui)
target_link_libraries(kritalibpaintop kritalibbrush kritaui koaspectbutton)
target_link_libraries(kritalibpaintop LINK_INTERFACE_LIBRARIES kritalibbrush kritaui)
set_target_properties(kritalibpaintop PROPERTIES
......
......@@ -194,7 +194,7 @@ kde4_add_ui_files(kritaui_LIB_SRCS
kde4_add_library(kritaui SHARED ${kritaui_LIB_SRCS} )
target_link_libraries(kritaui ${KDE4_KDE3SUPPORT_LIBS} ${BLITZ_LIBRARIES} ${KDE4_KPARTS_LIBS} ${KDE4_THREADWEAVER_LIBRARIES} kritaimage komain koresourcewidget ${PNG_LIBRARIES} ${EXIV2_LIBRARIES})
target_link_libraries(kritaui ${KDE4_KDE3SUPPORT_LIBS} ${BLITZ_LIBRARIES} ${KDE4_THREADWEAVER_LIBRARIES} kritaimage kozoomaction kopagelayout kodocumentsectionbox komain koaspectbutton koresourcewidget ${PNG_LIBRARIES} ${EXIV2_LIBRARIES})
if(HAVE_OPENGL)
target_link_libraries(kritaui ${OPENGL_LIBRARIES} ${QT_QTOPENGL_LIBRARY} ${OPENEXR_LIBRARIES})
......
......@@ -17,7 +17,7 @@ target_link_libraries(koaction
${KDE4_THREADWEAVER_LIBRARIES}
)
target_link_libraries(koaction LINK_INTERFACE_LIBRARIES ${QT_QTCORE_LIBRARY})
#target_link_libraries(koaction LINK_INTERFACE_LIBRARIES)
set_target_properties(koaction PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -9,9 +9,9 @@ set(kobase_LIB_SRCS
kde4_add_library(kobase SHARED ${kobase_LIB_SRCS})
target_link_libraries(kobase ${KDE4_KDECORE_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY})
target_link_libraries(kobase ${KDE4_KDECORE_LIBS} ${QT_QTXML_LIBRARY})
target_link_libraries(kobase LINK_INTERFACE_LIBRARIES ${KDE4_KDECORE_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY})
target_link_libraries(kobase LINK_INTERFACE_LIBRARIES ${KDE4_KDECORE_LIBS} ${QT_QTXML_LIBRARY})
set_target_properties(kobase PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -5,11 +5,27 @@ if(NOT KDE_VERSION_OK)
endif(NOT KDE_VERSION_OK)
include_directories(${KDE4_KDECORE_INCLUDES} ${KDE4_KDEUI_INCLUDES} ${KOMAIN_INCLUDES})
set(kokross_LIB_SRCS KoScriptingModule.cpp KoScriptingDocker.cpp KoScriptManager.cpp KoScriptManagerAdd.cpp KoScriptingPart.cpp KoScriptingOdf.cpp)
set(kokross_LIB_SRCS
KoScriptingModule.cpp
KoScriptingDocker.cpp
KoScriptManager.cpp
KoScriptManagerAdd.cpp
KoScriptingPart.cpp
KoScriptingOdf.cpp
)
kde4_add_library(kokross SHARED ${kokross_LIB_SRCS})
target_link_libraries(kokross koodf ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KPARTS_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KROSSCORE_LIBRARY} ${KDE4_KNEWSTUFF2_LIBRARY} ${KDE4_KROSSUI_LIBS} komain)
target_link_libraries(kokross LINK_INTERFACE_LIBRARIES ${KDE4_KROSSCORE_LIBRARY} ${KDE4_KROSSUI_LIBS} koodf )
target_link_libraries(kokross
komain
${KDE4_KFILE_LIBRARY}
${KDE4_KPARTS_LIBS}
${KDE4_KROSSCORE_LIBRARY}
${KDE4_KNEWSTUFF2_LIBRARY}
${KDE4_KROSSUI_LIBS}
)
target_link_libraries(kokross LINK_INTERFACE_LIBRARIES ${KDE4_KROSSCORE_LIBRARY} ${KDE4_KROSSUI_LIBS})
set_target_properties(kokross PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -50,8 +50,10 @@ set( kopageapp_LIB_SRCS
kde4_add_library(kopageapp SHARED ${kopageapp_LIB_SRCS})
target_link_libraries(kopageapp koodf flake kodocumentsectionbox komain kostore ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} kozoomaction kotext)
target_link_libraries(kopageapp LINK_INTERFACE_LIBRARIES flake komain )
target_link_libraries(kopageapp kodocumentsectionbox komain
kozoomaction kopagelayout
)
target_link_libraries(kopageapp LINK_INTERFACE_LIBRARIES komain kozoomaction)
set_target_properties(kopageapp PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -14,8 +14,8 @@ set(kopicture_LIB_SRCS
kde4_add_library(kopicture SHARED ${kopicture_LIB_SRCS})
target_link_libraries(kopicture kostore ${KDE4_KDECORE_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
target_link_libraries(kopicture LINK_INTERFACE_LIBRARIES kostore ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTCORE_LIBRARY})
target_link_libraries(kopicture kostore ${QT_QTGUI_LIBRARY})
target_link_libraries(kopicture LINK_INTERFACE_LIBRARIES kostore ${QT_QTGUI_LIBRARY})
set_target_properties(kopicture PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -9,7 +9,7 @@ set(koplugin_LIB_SRCS
kde4_add_library(koplugin SHARED ${koplugin_LIB_SRCS})
target_link_libraries(koplugin ${KDE4_KDECORE_LIBS})
target_link_libraries(koplugin LINK_INTERFACE_LIBRARIES ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS})
target_link_libraries(koplugin LINK_INTERFACE_LIBRARIES ${KDE4_KDECORE_LIBS})
set_target_properties(koplugin PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -73,24 +73,22 @@ kde4_add_ui_files( komain_LIB_SRCS
kde4_add_library(komain SHARED ${komain_LIB_SRCS})
if (NOT NO_PIGMENT)
set (extra_libs kocolorwidgets koresources pigmentcms koresourcewidget )
set (extra_libs kocolorwidgets koresources pigmentcms koresourcewidget)
endif (NOT NO_PIGMENT)
target_link_libraries(komain ${extra_libs}
flake koaction koaspectbutton kocharacterselectiondialog kocvsimport
kodocumentsectionbox koinput kolinestyleselector koopenpane koprogress
kozoomaction kotext kopagelayout
${KDE4_KPARTS_LIBS}
${KDE4_KFILE_LIBRARY}
${KDE4_KABC_LIBS}
${KDE4_THREADWEAVER_LIBRARIES}
${KDE4_KFILE_LIBRARY}
koprogress
koinput
koaspectbutton
kotext
koaction
koopenpane
)
target_link_libraries(komain LINK_INTERFACE_LIBRARIES ${extra_libs}
flake koaction koaspectbutton kobase kocharacterselectiondialog kocvsimport
kodocumentsectionbox koinput kolinestyleselector koodf koopenpane kopicture koplugin koprogress
kostore kozoomaction kotext kopagelayout
${QT_QTGUI_LIBRARY})
target_link_libraries(komain LINK_INTERFACE_LIBRARIES kotext ${KDE4_KPARTS_LIBS})
set_target_properties(komain PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -91,14 +91,13 @@ target_link_libraries(
pigmentcms
koplugin
${EXTRA_LIBRARIES}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${QT_QTXML_LIBRARY}
${X11_X11_LIB}
)
target_link_libraries(
pigmentcms LINK_INTERFACE_LIBRARIES koplugin ${QT_QTXML_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${EXTRA_LIBRARIES}
pigmentcms LINK_INTERFACE_LIBRARIES koplugin ${QT_QTXML_LIBRARY} ${QT_QTGUI_LIBRARY} ${EXTRA_LIBRARIES}
)
set_target_properties(pigmentcms PROPERTIES
......
......@@ -15,7 +15,7 @@ set(koresources_LIB_SRCS
kde4_add_library(koresources SHARED ${koresources_LIB_SRCS})
target_link_libraries(koresources pigmentcms ${QT_QTXML_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
target_link_libraries(koresources pigmentcms ${QT_QTXML_LIBRARY} ${QT_QTGUI_LIBRARY})
target_link_libraries(koresources LINK_INTERFACE_LIBRARIES pigmentcms)
set_target_properties(koresources PROPERTIES
......
......@@ -20,11 +20,10 @@ set(kostore_LIB_SRCS
KoEncryptedStore.cpp
)
kde4_add_library(kostore SHARED ${kostore_LIB_SRCS})
target_link_libraries(kostore ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTCORE_LIBRARY})
target_link_libraries(kostore LINK_INTERFACE_LIBRARIES ${KDE4_KIO_LIBS} ${KDE4_KDECORE_LIBS} ${QT_QTXML_LIBRARY} ${QT_QTCORE_LIBRARY})
target_link_libraries(kostore ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY})
target_link_libraries(kostore LINK_INTERFACE_LIBRARIES ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY})
if( QCA2_FOUND )
target_link_libraries(kostore ${QCA2_LIBRARIES})
......
......@@ -11,8 +11,8 @@ set(koaspectbutton_LIB_SRCS
kde4_add_library(koaspectbutton SHARED ${koaspectbutton_LIB_SRCS})
target_link_libraries(koaspectbutton
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${QT_QTGUI_LIBRARY}
${QT_QTCORE_LIBRARY}
)
set_target_properties(koaspectbutton PROPERTIES
......
......@@ -9,7 +9,6 @@ set(kocharacterselectiondialog_LIB_SRCS
kde4_add_library(kocharacterselectiondialog SHARED ${kocharacterselectiondialog_LIB_SRCS})
target_link_libraries(kocharacterselectiondialog
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
)
......
......@@ -27,9 +27,9 @@ kde4_add_ui_files( kocolorwidgets_LIB_SRCS
kde4_add_library(kocolorwidgets SHARED ${kocolorwidgets_LIB_SRCS})
target_link_libraries(kocolorwidgets koresources koinput)
target_link_libraries(kocolorwidgets koresources koinput ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS})
target_link_libraries(kocolorwidgets LINK_INTERFACE_LIBRARIES koresources koinput)
target_link_libraries(kocolorwidgets LINK_INTERFACE_LIBRARIES koresources koinput ${KDE4_KDEUI_LIBS})
set_target_properties(kocolorwidgets PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -12,11 +12,9 @@ set(kodocumentsectionbox_LIB_SRCS
kde4_add_library(kodocumentsectionbox SHARED ${kodocumentsectionbox_LIB_SRCS})
target_link_libraries(kodocumentsectionbox
target_link_libraries(kodocumentsectionbox
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KPARTS_LIBS}
${KDE4_KFILE_LIBRARY}
${QT_QTGUI_LIBRARY}
)
set_target_properties(kodocumentsectionbox PROPERTIES
......
......@@ -13,14 +13,7 @@ set(koinput_LIB_SRCS
kde4_add_library(koinput SHARED ${koinput_LIB_SRCS})
target_link_libraries(koinput
koodf
kobase
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KPARTS_LIBS}
${KDE4_KFILE_LIBRARY}
)
target_link_libraries(koinput kobase ${QT_QTGUI_LIBRARY})
set_target_properties(koinput PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -9,8 +9,8 @@ set(kolinestyleselector_LIB_SRCS
kde4_add_library(kolinestyleselector SHARED ${kolinestyleselector_LIB_SRCS})
target_link_libraries(kolinestyleselector
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${QT_QTGUI_LIBRARY}
${QT_QTCORE_LIBRARY}
)
set_target_properties(kolinestyleselector PROPERTIES
......
......@@ -24,11 +24,9 @@ kde4_add_ui_files( koopenpane_LIB_SRCS
kde4_add_library(koopenpane SHARED ${koopenpane_LIB_SRCS})
target_link_libraries(koopenpane
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KPARTS_LIBS}
target_link_libraries(koopenpane
${KDE4_KFILE_LIBRARY}
${KDE4_KIO_LIBRARY}
)
set_target_properties(koopenpane PROPERTIES
......
......@@ -20,12 +20,7 @@ kde4_add_ui_files( kopagelayout_LIB_SRCS
kde4_add_library(kopagelayout SHARED ${kopagelayout_LIB_SRCS})
target_link_libraries(kopagelayout kotext koodf kostore kobase koinput flake
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KPARTS_LIBS}
${KDE4_KFILE_LIBRARY}
)
target_link_libraries(kopagelayout kotext koinput)
set_target_properties(kopagelayout PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -13,12 +13,9 @@ set(koresourcewidget_LIB_SRCS
kde4_add_library(koresourcewidget SHARED ${koresourcewidget_LIB_SRCS})
target_link_libraries(koresourcewidget koresources
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
)
target_link_libraries(koresourcewidget koresources ${KDE4_KIO_LIBS})
target_link_libraries(koresourcewidget LINK_INTERFACE_LIBRARIES koresources )
target_link_libraries(koresourcewidget LINK_INTERFACE_LIBRARIES koresources ${KDE4_KDEUI_LIBS})
set_target_properties(koresourcewidget PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -11,8 +11,8 @@ set(kozoomaction_LIB_SRCS
kde4_add_library(kozoomaction SHARED ${kozoomaction_LIB_SRCS})
target_link_libraries(kozoomaction ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} flake )
target_link_libraries(kozoomaction LINK_INTERFACE_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} flake koaction )
target_link_libraries(kozoomaction flake)
target_link_libraries(kozoomaction LINK_INTERFACE_LIBRARIES flake)
set_target_properties(kozoomaction PROPERTIES
VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION}
......
......@@ -7,7 +7,7 @@ set(zoomhandler_test_SRCS zoomhandler_test.cpp )
kde4_add_unit_test(zoomhandler_test TESTNAME libs--zoomhandler_test ${zoomhandler_test_SRCS})
target_link_libraries(zoomhandler_test ${KDE4_KDEUI_LIBS} komain ${QT_QTTEST_LIBRARY})
target_link_libraries(zoomhandler_test kozoomaction komain ${QT_QTTEST_LIBRARY})
########### next target ###############
......@@ -16,6 +16,6 @@ set(zoomcontroller_test_SRCS zoomcontroller_test.cpp )
kde4_add_unit_test(zoomcontroller_test TESTNAME libs--zoomcontroller_test ${zoomcontroller_test_SRCS})
target_link_libraries(zoomcontroller_test ${KDE4_KDEUI_LIBS} komain ${QT_QTTEST_LIBRARY})
target_link_libraries(zoomcontroller_test kozoomaction komain ${QT_QTTEST_LIBRARY})
########### end ###############
......@@ -21,15 +21,7 @@ kde4_add_ui_files( ArtisticTextShape_SRCS
kde4_add_plugin( artistictextshape ${ArtisticTextShape_SRCS} )
target_link_libraries(
artistictextshape
flake
komain
kostore
${KDE4_KDEUI_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
)
target_link_libraries(artistictextshape komain)
install( TARGETS artistictextshape DESTINATION ${PLUGIN_INSTALL_DIR} )
......
......@@ -6,14 +6,7 @@ kde4_add_plugin(krita_cmyk_u16_plugin ${krita_cmyk_u16_plugin_PART_SRCS})
target_link_libraries(
krita_cmyk_u16_plugin
pigmentcms
${LCMS_LIBRARIES}
${KDE4_KDECORE_LIBS}
${QT_QTGUI_LIBRARY}
${QT_QTXML_LIBRARY}
)
target_link_libraries(krita_cmyk_u16_plugin pigmentcms)
install(TARGETS krita_cmyk_u16_plugin DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -3,14 +3,7 @@ add_subdirectory( templates )
set(kritacmykplugin_PART_SRCS cmyk_plugin.cc kis_cmyk_colorspace.cc )
kde4_add_plugin(kritacmykplugin ${kritacmykplugin_PART_SRCS})
target_link_libraries(
kritacmykplugin
pigmentcms
${LCMS_LIBRARIES}
${KDE4_KDECORE_LIBS}
${QT_QTGUI_LIBRARY}
${QT_QTXML_LIBRARY}
)
target_link_libraries(kritacmykplugin pigmentcms)
install(TARGETS kritacmykplugin DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES kritacmykplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
......
......@@ -5,15 +5,7 @@ set(koffice_graya_u16_LIB_SRCS kis_gray_u16_colorspace.cc )
kde4_add_library(koffice_graya_u16 SHARED ${koffice_graya_u16_LIB_SRCS})
target_link_libraries(
koffice_graya_u16
pigmentcms
${LCMS_LIBRARIES}
${KDE4_KDECORE_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${QT_QTXML_LIBRARY}
)
target_link_libraries(koffice_graya_u16 pigmentcms)
set_target_properties(koffice_graya_u16 PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install(TARGETS koffice_graya_u16 ${INSTALL_TARGETS_DEFAULT_ARGS})
......@@ -28,7 +20,7 @@ kde4_add_plugin(koffice_graya_u16_plugin ${koffice_graya_u16_plugin_PART_SRCS})
target_link_libraries(koffice_graya_u16_plugin ${KDE4_KDECORE_LIBS} koffice_graya_u16 pigmentcms )
target_link_libraries(koffice_graya_u16_plugin koffice_graya_u16 pigmentcms )
install(TARGETS koffice_graya_u16_plugin DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -10,15 +10,7 @@ set(kofficegrayau8colorspace_LIB_SRCS kis_gray_colorspace.cc )
kde4_add_library(kofficegrayau8colorspace SHARED ${kofficegrayau8colorspace_LIB_SRCS})
target_link_libraries(
kofficegrayau8colorspace
pigmentcms
${LCMS_LIBRARIES}
${KDE4_KDECORE_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${QT_QTXML_LIBRARY}
)
target_link_libraries(kofficegrayau8colorspace pigmentcms)
set_target_properties(kofficegrayau8colorspace PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install(TARGETS kofficegrayau8colorspace ${INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -39,16 +39,7 @@ kde4_add_ui_files(defaulttools_SRCS
)
kde4_add_plugin(defaulttools ${defaulttools_SRCS})
target_link_libraries(
defaulttools
flake
kotext
komain
${KDE4_KDECORE_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QT3SUPPORT_LIBRARY}
)
target_link_libraries(defaulttools flake koinput koaspectbutton)
install(TARGETS defaulttools DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
......
......@@ -17,14 +17,7 @@ kde4_add_ui_files(divineProportionShape_SRCS
kde4_add_plugin(divineproportionshape ${divineProportionShape_SRCS})
target_link_libraries(
divineproportionshape
flake
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
)
target_link_libraries(divineproportionshape flake)
install(TARGETS divineproportionshape DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -57,19 +57,7 @@ IF (NOT TINY)
set(EXTRA_LIBS koresources pigmentcms kocolorwidgets)
ENDIF (NOT TINY)
target_link_libraries(
kofficedockers
komain
flake
kostore
${EXTRA_LIBS}
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${QT_QT3SUPPORT_LIBRARY}
)
target_link_libraries(kofficedockers komain ${EXTRA_LIBS} kolinestyleselector)
install(TARGETS kofficedockers DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -91,16 +91,7 @@ kde4_add_ui_files(musicshape_LIB_SRCS
kde4_add_plugin(musicshape ${musicshape_LIB_SRCS})
target_link_libraries(
musicshape
flake
kostore
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
)
target_link_libraries(musicshape flake)
install(TARGETS musicshape DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
......
......@@ -24,7 +24,7 @@ set(SheetTest_test_SRCS
)
kde4_add_unit_test(SheetTest TESTNAME shapes-musicshape-SheetTest ${SheetTest_test_SRCS})
target_link_libraries(SheetTest ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY})
target_link_libraries(SheetTest ${QT_QTTEST_LIBRARY})
########### next target ###############
......@@ -50,7 +50,7 @@ set(VoiceBarTest_test_SRCS
)
kde4_add_unit_test(VoiceBarTest TESTNAME shapes-musicshape-VoiceBarTest ${VoiceBarTest_test_SRCS})
target_link_libraries(VoiceBarTest ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY})
target_link_libraries(VoiceBarTest ${QT_QTTEST_LIBRARY})
########### next target ###############
......@@ -76,7 +76,7 @@ set(MusicXmlWriterTest_test_SRCS
)
kde4_add_unit_test(MusicXmlWriterTest TESTNAME shapes-musicshape-MusicXmlWriterTest ${MusicXmlWriterTest_test_SRCS})
target_link_libraries(MusicXmlWriterTest ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY} kostore)
target_link_libraries(MusicXmlWriterTest ${QT_QTTEST_LIBRARY} kostore)
......@@ -28,7 +28,4 @@ set( musicwidgettest_SRCS
)
kde4_add_executable(musicwidgettest TEST ${musicwidgettest_SRCS})
target_link_libraries(musicwidgettest
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
)
target_link_libraries(musicwidgettest ${QT_QTGUI_LIBRARY})
......@@ -26,17 +26,7 @@ kde4_add_ui_files(
kde4_add_plugin(paragraphtool ${paragraphtool_SRCS})
target_link_libraries(
paragraphtool
flake
kotext
komain
kostore
pigmentcms
${KDE4_KDEUI_LIBS}
${QT_QTCORE_LIBRARY}
)
target_link_libraries(paragraphtool komain)
install(TARGETS paragraphtool DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
......
......@@ -38,17 +38,7 @@ kde4_add_ui_files(pathshapes_PART_SRCS
)
kde4_add_plugin(pathshapes ${pathshapes_PART_SRCS})
target_link_libraries(
pathshapes
flake
komain
kostore
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
)
target_link_libraries(pathshapes flake koinput)
install(TARGETS pathshapes DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -14,16 +14,7 @@ SET (pictureshape_LIB_SRCS
kde4_add_plugin(pictureshape ${pictureshape_LIB_SRCS})
target_link_libraries(
pictureshape
flake
komain
kostore
${KDE4_KDECORE_LIBS}
${KDE4_KIO_LIBS}
${KDE4_KFILE_LIBRARY}
${QT_QTCORE_LIBRARY}
)
target_link_libraries(pictureshape komain)
install(TARGETS pictureshape DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
......
......@@ -12,7 +12,7 @@ kde4_add_plugin(kofficescan ${kofficescan_PART_SRCS})
target_link_libraries(kofficescan komain ${KDE4_KPARTS_LIBS} ${QT_QT3SUPPORT_LIBRARY} )
target_link_libraries(kofficescan komain ${QT_QT3SUPPORT_LIBRARY} )
install(TARGETS kofficescan DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -17,7 +17,7 @@ kde4_add_ui_files( kofficesimpletextedit_SRCS
kde4_add_plugin(kofficesimpletextedit ${kofficesimpletextedit_SRCS})
target_link_libraries(kofficesimpletextedit kotext flake komain ${KDE4_KDEUI_LIBS})
target_link_libraries(kofficesimpletextedit kotext)
install(TARGETS kofficesimpletextedit DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -13,7 +13,7 @@ SET ( spacenavigator_SRCS
)
kde4_add_plugin(spacenavigator ${spacenavigator_SRCS})
target_link_libraries(spacenavigator ${SPNAV_LIBRARY} ${X11_LIBRARIES} flake kotext)
target_link_libraries(spacenavigator ${SPNAV_LIBRARY} ${X11_LIBRARIES} kotext)
install(TARGETS spacenavigator DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
......
......@@ -17,7 +17,7 @@ kde4_add_ui_files( autocorrect_SRCS
kde4_add_plugin(autocorrect ${autocorrect_SRCS})
target_link_libraries(autocorrect kotext ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} kostore ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} komain)
target_link_libraries(autocorrect komain)
install(TARGETS autocorrect DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -10,7 +10,7 @@ set(changecase_SRCS
kde4_add_plugin(changecase ${changecase_SRCS})
target_link_libraries(changecase kotext ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS})
target_link_libraries(changecase kotext)
install(TARGETS changecase DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -16,7 +16,7 @@ kde4_add_ui_files( spellcheck_SRCS
kde4_add_plugin(spellcheck ${spellcheck_SRCS})
target_link_libraries(spellcheck kotext ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS})
target_link_libraries(spellcheck kotext)
install(TARGETS spellcheck DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -14,16 +14,7 @@ set(thesaurustool_SRCS
kde4_add_plugin(thesaurustool ${thesaurustool_SRCS})
target_link_libraries(
thesaurustool
kotext
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}