~ci-train-bot/unity-notifications/unity-notifications-ubuntu-yakkety-landing-092

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Pete Woods
  • Date: 2015-06-23 09:11:39 UTC
  • mto: (224.1.13 trunk)
  • mto: This revision was merged to the branch mainline in revision 225.
  • Revision ID: pete.woods@canonical.com-20150623091139-lc7vnpy2gh40dpbp
Fix parallel build issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    NotificationsInterface
39
39
)
40
40
 
41
 
# Build everything twice. Since we have only a few
42
 
# source files, this is not an issue. If it does
43
 
# become one, change tools so they use the plugin
44
 
# instead of calling the classes directly.
45
 
 
46
 
add_library(notifybackend SHARED
 
41
add_library(notifybackend STATIC
47
42
${CORE_SRCS}
48
43
)
49
44
 
50
45
add_library(notifyplugin MODULE
51
 
${CORE_SRCS}
52
46
NotificationPlugin.cpp
53
47
../include/NotificationPlugin.h
54
48
)
56
50
set_target_properties(notifyplugin PROPERTIES
57
51
  SOVERSION ${SONAME}
58
52
  VERSION ${SOVERSION}
59
 
  )
 
53
)
 
54
 
 
55
target_link_libraries(
 
56
  notifyplugin
 
57
  notifybackend
 
58
)
60
59
 
61
60
add_library(notifyclientplugin MODULE
62
61
NotificationClientPlugin.cpp
68
67
set_target_properties(notifyclientplugin PROPERTIES
69
68
  SOVERSION ${SONAME}
70
69
  VERSION ${SOVERSION}
71
 
  )
 
70
)
 
71
 
 
72
target_link_libraries(
 
73
  notifyclientplugin
 
74
  notifybackend
 
75
)
72
76
 
73
77
qt5_use_modules(notifybackend Widgets DBus Qml)
74
 
qt5_use_modules(notifyplugin Widgets DBus Qml)
75
 
qt5_use_modules(notifyclientplugin Widgets DBus Qml)
76
78
 
77
79
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=plugindir_suffix unity-shell-api OUTPUT_VARIABLE SHELL_INSTALL_QML OUTPUT_STRIP_TRAILING_WHITESPACE)
78
80
if(SHELL_INSTALL_QML STREQUAL "")