Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/CMakeLists.txt
Show All 16 Lines | |||||
17 | 17 | | |||
18 | 18 | | |||
19 | # Find all the source qml files | 19 | # Find all the source qml files | ||
20 | FILE(GLOB_RECURSE inFiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | 20 | FILE(GLOB_RECURSE inFiles RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
21 | "${CMAKE_CURRENT_SOURCE_DIR}/plasmacomponents3/*") | 21 | "${CMAKE_CURRENT_SOURCE_DIR}/plasmacomponents3/*") | ||
22 | 22 | | |||
23 | #for each file, replace @QQC2_VERSION@ with the version we found | 23 | #for each file, replace @QQC2_VERSION@ with the version we found | ||
24 | FOREACH(infileName ${inFiles}) | 24 | FOREACH(infileName ${inFiles}) | ||
25 | configure_package_config_file( | 25 | configure_file( | ||
26 | "${CMAKE_CURRENT_SOURCE_DIR}/${infileName}" | 26 | "${CMAKE_CURRENT_SOURCE_DIR}/${infileName}" | ||
27 | "${CMAKE_CURRENT_BINARY_DIR}/${infileName}" | 27 | "${CMAKE_CURRENT_BINARY_DIR}/${infileName}" | ||
28 | INSTALL_DESTINATION "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Plasma" | 28 | @ONLY | ||
29 | PATH_VARS QQC2_VERSION | | |||
30 | ) | 29 | ) | ||
31 | ENDFOREACH(infileName) | 30 | ENDFOREACH(infileName) | ||
32 | 31 | | |||
33 | #install the components as a QQC2 Style, as style for applications (mainly for Plasma Mobile) | 32 | #install the components as a QQC2 Style, as style for applications (mainly for Plasma Mobile) | ||
34 | install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/Controls.2/Plasma) | 33 | install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/ DESTINATION ${KDE_INSTALL_QMLDIR}/QtQuick/Controls.2/Plasma) | ||
35 | 34 | | |||
36 | #install some of the componets as a separate import, to be used in plasmoids (some of them like ApplicationWindow are of no use for plasmoids) | 35 | #install some of the componets as a separate import, to be used in plasmoids (some of them like ApplicationWindow are of no use for plasmoids) | ||
37 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/BusyIndicator.qml | 36 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plasmacomponents3/BusyIndicator.qml | ||
Show All 38 Lines |