on xenial help sign in
fixing cmake
commit61752eb68fac1b66d025640eb78da3611b4b9c3a authorDiego Sarmentero <diego.sarmentero@gmail.com> dateWed 24 Jul 2013, 16:46 (13 years ago) parente39d019
1 file changed+9−20
plugins/Ubuntu/DownloadDaemonListener/CMakeLists.txt+9−20
plugins/Ubuntu/DownloadDaemonListener/CMakeLists.txt+9−20
@@ -1,3 +1,8 @@
1+# export_qmlplugin macro
2+include(Plugins)
3+
4+set(CMAKE_AUTOMOC ON)
5+
16include_directories(
27 ${CMAKE_CURRENT_SOURCE_DIR}
38 ${CMAKE_CURRENT_BINARY_DIR}
@@ -10,26 +15,10 @@ set(DOWNLOADDAEMONLISTENER_SOURCES
1015 interface/downloadtrackeradaptor.cpp
1116 )
1217
13−add_library(DownloadDaemonListener MODULE
14− ${DOWNLOADDAEMONLISTENER_SOURCES}
15− )
16−# Because this is an internal support library, we want
17−# to expose all symbols in it. Consider changing this
18−# either to a static library or just using the
19−# files directly in targets.
20−set_target_properties(DownloadDaemonListener PROPERTIES COMPILE_FLAGS -fvisibility=default)
18+add_library(DownloadDaemonListener MODULE ${DOWNLOADDAEMONLISTENER_SOURCES})
2119
2220qt5_use_modules(DownloadDaemonListener Qml Quick DBus Core)
2321
24−# copy qmldir file into build directory for shadow builds
25−file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
26− DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
27− )
28−
29−install(TARGETS DownloadDaemonListener
30− DESTINATION ${SHELL_APP_DIR}/plugins/Ubuntu/DownloadDaemonListener
31− )
32−
33−install(FILES qmldir
34− DESTINATION ${SHELL_APP_DIR}/plugins/Ubuntu/DownloadDaemonListener
35− )
22+# export the qmldir qmltypes and plugin files
23+export_qmlfiles(Ubuntu.DownloadDaemonListener Ubuntu/DownloadDaemonListener)
24+export_qmlplugin(Ubuntu.DownloadDaemonListener 0.1 Ubuntu/DownloadDaemonListener TARGETS DownloadDaemonListener)