kdelibs/kparts/CMakeLists.txt

65 lines
1.1 KiB
Text
Raw Normal View History

2014-11-13 01:04:59 +02:00
project(kparts)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
2014-11-13 01:04:59 +02:00
include_directories(${KDE4_KIO_INCLUDES} ${kparts_BINARY_DIR})
########### next target ###############
set(kparts_LIB_SRCS
part.cpp
partmanager.cpp
mainwindow.cpp
event.cpp
browserextension.cpp
factory.cpp
statusbarextension.cpp
)
2014-11-13 01:04:59 +02:00
add_library(kparts ${LIBRARY_TYPE} ${kparts_LIB_SRCS})
2014-11-13 01:04:59 +02:00
target_link_libraries(kparts PUBLIC
${KDE4_KDECORE_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
)
2014-11-13 01:04:59 +02:00
set_target_properties(kparts PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
2014-11-13 01:04:59 +02:00
install(
TARGETS kparts
EXPORT kdelibsLibraryTargets
${INSTALL_TARGETS_DEFAULT_ARGS}
)
2014-11-13 01:04:59 +02:00
########### install files ###############
install(
FILES
kpart.desktop
krop.desktop
krwp.desktop
DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR}
)
generate_export_header(kparts)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/kparts_export.h
part.h
partmanager.h
mainwindow.h
event.h
browserextension.h
factory.h
statusbarextension.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/kparts
COMPONENT Devel
)