Browse Source

Use private linking for exported CMake targets.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/88/head
Slávek Banko 3 months ago
parent
commit
158b6e1152
Signed by: SlavekB GPG Key ID: 608F5293A04BE668
10 changed files with 19 additions and 13 deletions
  1. +2
    -1
      interfaces/tdetexteditor/CMakeLists.txt
  2. +2
    -1
      kjs/CMakeLists.txt
  3. +2
    -1
      libtdemid/CMakeLists.txt
  4. +3
    -3
      tdecore/CMakeLists.txt
  5. +2
    -1
      tdehtml/CMakeLists.txt
  6. +1
    -1
      tdeinit/CMakeLists.txt
  7. +2
    -1
      tdeio/CMakeLists.txt
  8. +1
    -2
      tdeioslave/file/CMakeLists.txt
  9. +2
    -1
      tdesu/CMakeLists.txt
  10. +2
    -1
      tdeui/CMakeLists.txt

+ 2
- 1
interfaces/tdetexteditor/CMakeLists.txt View File

@@ -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}
)

+ 2
- 1
kjs/CMakeLists.txt View File

@@ -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}
)

+ 2
- 1
libtdemid/CMakeLists.txt View File

@@ -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}
)

+ 3
- 3
tdecore/CMakeLists.txt View File

@@ -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}
)



+ 2
- 1
tdehtml/CMakeLists.txt View File

@@ -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}
)



+ 1
- 1
tdeinit/CMakeLists.txt View File

@@ -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}
)



+ 2
- 1
tdeio/CMakeLists.txt View File

@@ -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}
)

+ 1
- 2
tdeioslave/file/CMakeLists.txt View File

@@ -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}
)


+ 2
- 1
tdesu/CMakeLists.txt View File

@@ -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}
)



+ 2
- 1
tdeui/CMakeLists.txt View File

@@ -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