plasma-framework/src/plasmaquick/CMakeLists.txt

67 lines
1.8 KiB
CMake
Raw Normal View History

project(PlasmaQuick)
2013-08-27 20:12:05 +02:00
set(plasmaquick_LIB_SRC
2013-08-27 20:12:05 +02:00
view.cpp
configview.cpp
containmentconfigview_p.cpp
currentcontainmentactionsmodel_p.cpp
2013-08-27 20:12:05 +02:00
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
add_library(plasmaquick SHARED ${plasmaquick_LIB_SRC})
2013-08-27 20:12:05 +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
)
set_target_properties(plasmaquick PROPERTIES
2013-08-27 20:12:05 +02:00
VERSION 5.0.0
SOVERSION 5
)
install(TARGETS plasmaquick EXPORT PlasmaQuickTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
2013-08-27 20:12:05 +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-08-27 20:12:05 +02:00
view.h
configview.h
)
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