mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
86 lines
1.6 KiB
CMake
86 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
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_KDEUI_LIBS}
|
|
${KDE4_KIO_LIBS}
|
|
${QT_QTCORE_LIBRARY}
|
|
${QT_QTGUI_LIBRARY}
|
|
)
|
|
|
|
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}
|
|
)
|
|
|
|
install(
|
|
FILES
|
|
kparts_export.h
|
|
part.h
|
|
plugin.h
|
|
partmanager.h
|
|
mainwindow.h
|
|
event.h
|
|
browserextension.h
|
|
factory.h
|
|
historyprovider.h
|
|
browserinterface.h
|
|
componentfactory.h
|
|
browserrun.h
|
|
statusbarextension.h
|
|
browseropenorsavequestion.h
|
|
scriptableextension.h
|
|
textextension.h
|
|
htmlextension.h
|
|
fileinfoextension.h
|
|
listingextension.h
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kparts
|
|
COMPONENT Devel
|
|
)
|