Use EMBED to merge a static library into a kpart module

to avoid building the same source files twice.

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

@ -20,34 +20,31 @@ link_directories(
) )
set( _srcs domino.cpp misc.cpp ) ##### domino_style (STATIC)
set( _libs tdecore-shared tdeui-shared tdeutils-shared
${X11_LIBRARIES} ${XFT_LIBRARIES}
${XCB_SHAPE_LIBRARIES} ${FREETYPE_LIBRARIES}
)
##### domino (kpart)
tde_add_kpart( domino AUTOMOC tde_add_library( domino_style STATIC_PIC AUTOMOC
SOURCES SOURCES
${_srcs} domino.cpp misc.cpp
LINK LINK
${_libs} tdecore-shared tdeui-shared tdeutils-shared
${X11_LIBRARIES} ${XFT_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles ${XCB_SHAPE_LIBRARIES} ${FREETYPE_LIBRARIES}
) )
##### domino_style (STATIC) ##### domino (kpart)
tde_add_library( domino_style STATIC_PIC AUTOMOC configure_file( ${TDE_CMAKE_TEMPLATES}/tde_dummy_cpp.cmake dummy.cpp COPYONLY )
tde_add_kpart( domino AUTOMOC
SOURCES SOURCES
${_srcs} dummy.cpp
LINK EMBED
${_libs} domino_style-static
DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles
) )

Loading…
Cancel
Save