Use private linking for exported CMake targets.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/88/head
Slávek Banko 4 years ago
parent 080c061b15
commit 158b6e1152
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -98,6 +98,7 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 0.0.0
LINK tdeui-shared tdeabc-shared tdeparts-shared
LINK tdeui-shared tdeparts-shared
LINK_PRIVATE tdeabc-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -61,6 +61,7 @@ tde_add_lut( keywords.table lexer.lut.h lexer.cpp )
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 1.2.0
LINK tdecore-shared ${LIBPCRE_LIBRARIES}
LINK tdecore-shared
LINK_PRIVATE ${LIBPCRE_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -46,6 +46,7 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 0.0.95
LINK tdecore-shared ${ALSA_LIBRARIES}
LINK tdecore-shared
LINK_PRIVATE ${ALSA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -142,9 +142,9 @@ tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 14.0.0
EMBED tdecorenetwork-static ${TDEHW_LIB}
LINK ltdlc-static ${KDESVGICONS} DCOP-shared tdefx-shared ${ZLIB_LIBRARIES}
${LIBIDN_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ICE SM ${GAMIN_LIBRARIES}
${LIBBFD_LIBRARIES} ${LIB_UTIL}
LINK DCOP-shared tdefx-shared ICE SM ${ZLIB_LIBRARIES}
LINK_PRIVATE ltdlc-static ${KDESVGICONS} ${XCOMPOSITE_LIBRARIES}
${LIBIDN_LIBRARIES} ${LIBBFD_LIBRARIES} ${LIB_UTIL} ${GAMIN_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -95,7 +95,8 @@ tde_add_library( ${target} SHARED AUTOMOC
VERSION 14.0.0
LINK ${VSCRIPT} kjava-static kjs_html-static tdehtmldom-static tdehtmlcss-static
tdehtmlhtml-static tdehtmlxml-static tdehtmlrender-static tdehtmlmisc-static
tdeutils-shared tdeprint-shared kjs-shared ${JPEG_LIBRARIES}
tdeutils-shared tdeprint-shared
LINK_PRIVATE kjs-shared ${JPEG_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -40,7 +40,7 @@ set( ${target}_SRCS
tde_add_executable( ${target}
SOURCES ${${target}_SRCS}
LINK kICE-static ltdlc-static tdeparts-shared ${XFT_LIBRARIES}
LINK kICE-static ltdlc-static tdeparts-shared ${FONTCONFIG_LIBRARIES} ${XFT_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

@ -94,6 +94,7 @@ tde_add_library( ${target} SHARED
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
VERSION 14.0.0
EMBED kssl-static tdeiocore-static tdesycoca-static kbookmarks-static tdefile-static ${ELFICON_STATIC_LIB}
LINK ltdlc-static tdeui-shared tdesu-shared tdewalletclient-shared ${LIBR_LIBRARIES} ${ACL_LIBRARIES}
LINK tdeui-shared tdewalletclient-shared
LINK_PRIVATE ltdlc-static tdesu-shared ${LIBR_LIBRARIES} ${ACL_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -49,7 +49,6 @@ set( ${target}_SRCS
tde_add_kpart( ${target} AUTOMOC
SOURCES ${${target}_SRCS}
LINK tdeio-shared
LINK tdeio-shared ${ACL_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -42,7 +42,8 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED
SOURCES ${${target}_SRCS}
VERSION 14.0.0
LINK tdecore-shared ${LIB_UTIL}
LINK tdecore-shared
LINK_PRIVATE ${LIB_UTIL}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -148,7 +148,8 @@ set( ${target}_SRCS
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 14.0.0
LINK tdecore-shared ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${XEXT_LIBRARIES}
LINK tdecore-shared
LINK_PRIVATE ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${XEXT_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

Loading…
Cancel
Save