~unity-team/unity8/ota9.5

« back to all changes in this revision

Viewing changes to plugins/HudClient/CMakeLists.txt

  • Committer: Michał Sawicz
  • Date: 2013-06-05 22:03:08 UTC
  • Revision ID: michal.sawicz@canonical.com-20130605220308-yny8fv3futtr04fg
Inital unity8 commit.

Previous history can be found at https://code.launchpad.net/~unity-team/unity/phablet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
find_package(Qt5Core REQUIRED)
 
2
find_package(Qt5Quick REQUIRED)
 
3
pkg_search_module(DEE dee-1.0 REQUIRED)
 
4
pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
 
5
pkg_search_module(HUDCLIENT hud-client-2 REQUIRED)
 
6
pkg_search_module(DEEQT libdee-qt5 REQUIRED)
 
7
pkg_search_module(PULSE libpulse REQUIRED)
 
8
 
 
9
include_directories(
 
10
  ${CMAKE_CURRENT_BINARY_DIR}
 
11
  ${Qt5Core_INCLUDE_DIRS}
 
12
  ${Qt5Quick_INCLUDE_DIRS}
 
13
  ${DEE_INCLUDE_DIRS}
 
14
  ${DEEQT_INCLUDE_DIRS}
 
15
  ${HUDCLIENT_INCLUDE_DIRS}
 
16
  ${PULSE_INCLUDE_DIRS}
 
17
)
 
18
 
 
19
set(HudQML_SOURCES
 
20
  hudclient.cpp
 
21
  hudtoolbarmodel.cpp
 
22
  volumepeakdetector.cpp
 
23
  plugin.cpp
 
24
)
 
25
 
 
26
add_library(HudClientQml MODULE ${HudQML_SOURCES})
 
27
target_link_libraries(HudClientQml
 
28
  ${Qt5Core_LIBRARIES}
 
29
  ${Qt5Quick_LIBRARIES}
 
30
  ${DEEQT_LDFLAGS}
 
31
  ${HUDCLIENT_LDFLAGS}
 
32
  ${GOBJECT_LDFLAGS}
 
33
  ${PULSE_LDFLAGS}
 
34
)
 
35
 
 
36
qt5_use_modules(HudClientQml Qml)
 
37
 
 
38
# copy qmldir file into build directory for shadow builds
 
39
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
 
40
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
 
41
    )
 
42
 
 
43
install(TARGETS HudClientQml
 
44
    DESTINATION ${SHELL_APP_DIR}/plugins/HudClient
 
45
    )
 
46
 
 
47
install(FILES qmldir
 
48
    DESTINATION ${SHELL_APP_DIR}/plugins/HudClient
 
49
    )