plasma-framework/src/plasmaquick/CMakeLists.txt

70 lines
1.9 KiB
CMake
Raw Normal View History

project(PlasmaQuick)
2013-08-27 20:12:05 +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-09-11 15:18:19 +02:00
private/configcategory_p.cpp
#private/containmentconfigview_p.cpp
#private/currentcontainmentactionsmodel_p.cpp
2013-08-27 20:12:05 +02:00
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
2013-09-12 16:16:30 +02:00
add_library(PlasmaQuick SHARED ${plasmaquick_LIB_SRC})
2013-08-27 20:12:05 +02:00
2013-09-12 16:16:30 +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
2013-10-04 18:40:47 +02:00
KDeclarative
2013-08-27 20:12:05 +02:00
)
2013-09-12 16:16:30 +02:00
set_target_properties(PlasmaQuick PROPERTIES
2013-08-27 20:12:05 +02:00
VERSION 5.0.0
SOVERSION 5
)
2013-09-12 16:16:30 +02:00
install(TARGETS PlasmaQuick EXPORT PlasmaQuickTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
2013-08-27 20:12:05 +02:00
2013-09-12 16:16:30 +02:00
generate_export_header(PlasmaQuick)
2013-08-27 20:12:05 +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-08-27 20:12:05 +02:00
)
install(FILES ${plasmaquick_LIB_INCLUDES}
DESTINATION ${INCLUDE_INSTALL_DIR}/plasmaquick COMPONENT Devel)
2013-08-27 20:12:05 +02:00
install(DIRECTORY
includes/PlasmaQuick
2013-08-27 20:12:05 +02:00
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/ COMPONENT Devel)
set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/PlasmaQuick")
2013-08-27 20:12:05 +02:00
configure_package_config_file(
"${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
"${CMAKE_CURRENT_BINARY_DIR}/PlasmaQuickConfig.cmake"
2013-08-27 20:12:05 +02:00
DESTINATION "${CMAKECONFIG_INSTALL_DIR}" COMPONENT Devel
)
install(EXPORT PlasmaQuickTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE PlasmaQuickTargets.cmake NAMESPACE KF5:: )
2013-08-27 20:12:05 +02:00