on xenial help sign in
use export_plugin macro instead of copying stuff around manually
commit8b9e14c9c707e4f39c275e26bce6257779c6219c authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 8 Jul 2013, 16:04 (13 years ago) parent805b451
1 file changed+2−12
plugins/Unity/Launcher/CMakeLists.txt+2−12
plugins/Unity/Launcher/CMakeLists.txt+2−12
@@ -24,15 +24,5 @@ add_library(UnityLauncher-qml MODULE
2424
2525qt5_use_modules(UnityLauncher-qml Qml)
2626
27−# copy qmldir file into build directory for shadow builds
28−file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
29− DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
30− )
31−
32−install(TARGETS UnityLauncher-qml
33− DESTINATION ${SHELL_APP_DIR}/plugins/Unity/Launcher/
34− )
35−
36−install(FILES qmldir
37− DESTINATION ${SHELL_APP_DIR}/plugins/Unity/Launcher/
38− )
27+# export the qmldir and qmltypes files
28+export_qmlplugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)