kdelibs/kparts/CMakeLists.txt
Ivailo Monev 4d6fb007e7 generic: fix most of the overlinking issues
TODO from https://github.com/fluxer/katana/issues/7. I've decided to
keep KDE4 and Katie libraries as PUBLIC, all other libraries as PRIVATE
for that and not use INTERFACE at all since that will not require a lot
of changes to all other sub-projects (kde-baseapps, kde-workspace and
kde-extraapps) build systems.

MusicBrainz5 CMake module was also rewritten as the actual library that
should be linked to is libmusicbrainz5cc, libmusicbrainz5 is the C
version of it.

common checks for X11 extensions where move to main config header,
eventually to be moved to separate config-x11 header.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-09 21:58:11 +00:00

85 lines
1.6 KiB
CMake

project(kparts)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
include_directories(${KDE4_KIO_INCLUDES} ${kparts_BINARY_DIR})
########### next target ###############
set(kparts_LIB_SRCS
part.cpp
plugin.cpp
partmanager.cpp
mainwindow.cpp
event.cpp
browserextension.cpp
factory.cpp
historyprovider.cpp
browserinterface.cpp
browserrun.cpp
browseropenorsavequestion.cpp
statusbarextension.cpp
scriptableextension.cpp
textextension.cpp
htmlextension.cpp
fileinfoextension.cpp
listingextension.cpp
)
add_library(kparts ${LIBRARY_TYPE} ${kparts_LIB_SRCS})
target_link_libraries(kparts PUBLIC
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
)
set_target_properties(kparts PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
install(
TARGETS kparts
EXPORT kdelibsLibraryTargets
${INSTALL_TARGETS_DEFAULT_ARGS}
)
########### install files ###############
install(
FILES
kpart.desktop
krop.desktop
krwp.desktop
browserview.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR}
)
generate_export_header(kparts)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/kparts_export.h
part.h
plugin.h
partmanager.h
mainwindow.h
event.h
browserextension.h
factory.h
historyprovider.h
browserinterface.h
browserrun.h
statusbarextension.h
browseropenorsavequestion.h
scriptableextension.h
textextension.h
htmlextension.h
fileinfoextension.h
listingextension.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kparts
COMPONENT Devel
)