2013-09-11 11:13:27 +02:00
|
|
|
project(PlasmaQuick)
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
set(plasmaquick_LIB_SRC
|
2013-09-11 11:48:37 +02:00
|
|
|
plasmaquickview.cpp
|
2013-09-11 14:40:11 +02:00
|
|
|
configmodel.cpp
|
2013-08-27 20:12:05 +02:00
|
|
|
configview.cpp
|
2013-10-15 01:08:47 +02:00
|
|
|
packageurlinterceptor.cpp
|
2013-10-15 02:15:54 +02:00
|
|
|
private/configcategory_p.cpp
|
2013-08-27 20:12:05 +02:00
|
|
|
)
|
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
add_library(KF5PlasmaQuick SHARED ${plasmaquick_LIB_SRC})
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
target_link_libraries(KF5PlasmaQuick
|
2013-10-15 01:08:47 +02:00
|
|
|
Qt5::Quick
|
|
|
|
Qt5::Qml
|
|
|
|
KF5::KWindowSystem
|
|
|
|
KF5::KIOWidgets
|
2013-10-04 23:44:36 +02:00
|
|
|
KF5::KI18n
|
2013-10-04 23:42:16 +02:00
|
|
|
KF5::KService
|
|
|
|
KF5::KCoreAddons
|
2013-10-15 01:08:47 +02:00
|
|
|
KF5::XmlGui
|
2013-12-11 12:39:48 +01:00
|
|
|
KF5::Plasma
|
2013-10-04 19:18:34 +02:00
|
|
|
KF5::KDeclarative
|
2013-08-27 20:12:05 +02:00
|
|
|
)
|
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
set_target_properties(KF5PlasmaQuick PROPERTIES
|
|
|
|
VERSION 5.0.0
|
|
|
|
SOVERSION 5
|
|
|
|
EXPORT_NAME PlasmaQuick
|
2013-08-27 20:12:05 +02:00
|
|
|
)
|
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
install(TARGETS KF5PlasmaQuick EXPORT KF5PlasmaQuickTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
generate_export_header(KF5PlasmaQuick BASE_NAME PlasmaQuick)
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
set(plasmaquick_LIB_INCLUDES
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/plasmaquick_export.h
|
2013-09-11 11:48:37 +02:00
|
|
|
plasmaquickview.h
|
2013-08-27 20:12:05 +02:00
|
|
|
configview.h
|
2013-09-11 14:40:11 +02:00
|
|
|
configmodel.h
|
2013-10-15 01:08:47 +02:00
|
|
|
packageurlinterceptor.h
|
2013-08-27 20:12:05 +02:00
|
|
|
)
|
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
install(FILES ${plasmaquick_LIB_INCLUDES}
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasmaquick COMPONENT Devel)
|
2013-08-27 20:12:05 +02:00
|
|
|
|
|
|
|
install(DIRECTORY
|
2013-09-11 11:13:27 +02:00
|
|
|
includes/PlasmaQuick
|
2013-10-05 04:28:26 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE COMPONENT Devel)
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5PlasmaQuick")
|
2013-08-27 20:12:05 +02:00
|
|
|
|
|
|
|
configure_package_config_file(
|
2013-12-11 12:39:48 +01:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/KF5PlasmaQuickConfig.cmake.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/KF5PlasmaQuickConfig.cmake"
|
2013-08-27 20:12:05 +02:00
|
|
|
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
|
|
|
|
PATH_VARS INCLUDE_INSTALL_DIR CMAKE_INSTALL_PREFIX
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES
|
2013-12-11 12:39:48 +01:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/KF5PlasmaQuickConfig.cmake"
|
2013-08-27 20:12:05 +02:00
|
|
|
DESTINATION "${CMAKECONFIG_INSTALL_DIR}" COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
install(EXPORT KF5PlasmaQuickTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE KF5PlasmaQuickTargets.cmake NAMESPACE KF5:: )
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-10-15 02:37:06 +02:00
|
|
|
add_subdirectory(autotests)
|