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-08-27 20:12:05 +02:00
|
|
|
view.cpp
|
|
|
|
configview.cpp
|
2013-08-31 15:59:09 +02:00
|
|
|
containmentconfigview_p.cpp
|
2013-08-27 20:35:50 +02:00
|
|
|
currentcontainmentactionsmodel_p.cpp
|
2013-08-27 20:12:05 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
add_library(plasmaquick SHARED ${plasmaquick_LIB_SRC})
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
target_link_libraries(plasmaquick
|
2013-08-27 20:12:05 +02:00
|
|
|
${Qt5Quick_LIBRARIES}
|
|
|
|
${Qt5Qml_LIBRARIES}
|
|
|
|
${KWindowSystem_LIBRARIES}
|
2013-09-02 17:20:59 +02:00
|
|
|
${KI18n_LIBRARIES}
|
|
|
|
${KService_LIBRARIES}
|
|
|
|
${KCoreAddons_LIBRARIES}
|
|
|
|
${XmlGui_LIBRARIES}
|
2013-08-27 20:12:05 +02:00
|
|
|
plasma
|
|
|
|
kdeclarative
|
|
|
|
)
|
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
set_target_properties(plasmaquick PROPERTIES
|
2013-08-27 20:12:05 +02:00
|
|
|
VERSION 5.0.0
|
|
|
|
SOVERSION 5
|
|
|
|
)
|
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
install(TARGETS plasmaquick EXPORT PlasmaQuickTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2013-08-27 20:12:05 +02:00
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
generate_export_header(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-08-27 20:12:05 +02:00
|
|
|
view.h
|
|
|
|
configview.h
|
|
|
|
)
|
|
|
|
|
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-08-27 20:12:05 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/ COMPONENT Devel)
|
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/PlasmaQuick")
|
2013-08-27 20:12:05 +02:00
|
|
|
|
|
|
|
configure_package_config_file(
|
2013-09-11 11:13:27 +02:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/PlasmaQuickConfig.cmake.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/PlasmaQuickConfig.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-09-11 11:13:27 +02:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/PlasmaQuickConfig.cmake"
|
2013-08-27 20:12:05 +02:00
|
|
|
DESTINATION "${CMAKECONFIG_INSTALL_DIR}" COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
2013-09-11 11:13:27 +02:00
|
|
|
install(EXPORT PlasmaQuickTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE PlasmaQuickTargets.cmake NAMESPACE KF5:: )
|
2013-08-27 20:12:05 +02:00
|
|
|
|