~mhr3/unity8/fix-1297246

« back to all changes in this revision

Viewing changes to tests/qmltests/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
set(CMAKE_AUTOMOC ON)
 
2
 
 
3
include(FindPkgConfig)
 
4
find_package(Qt5Core REQUIRED)
 
5
find_package(Qt5Quick REQUIRED)
 
6
pkg_search_module(DEE dee-1.0 REQUIRED)
 
7
pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
 
8
pkg_search_module(HUDCLIENT hud-client-2 REQUIRED)
 
9
pkg_search_module(DEEQT libdee-qt5 REQUIRED)
 
10
pkg_search_module(PULSE libpulse REQUIRED)
 
11
 
 
12
include_directories(
 
13
  ${CMAKE_SOURCE_DIR}/plugins/HudClient
 
14
  ${CMAKE_CURRENT_BINARY_DIR}
 
15
  ${Qt5Core_INCLUDE_DIRS}
 
16
  ${Qt5Quick_INCLUDE_DIRS}
 
17
  ${DEE_INCLUDE_DIRS}
 
18
  ${DEEQT_INCLUDE_DIRS}
 
19
  ${HUDCLIENT_INCLUDE_DIRS}
 
20
  ${PULSE_INCLUDE_DIRS}
 
21
)
 
22
 
 
23
set(HudQML_SOURCES
 
24
  ${CMAKE_SOURCE_DIR}/plugins/HudClient/hudclient.cpp
 
25
  ${CMAKE_SOURCE_DIR}/plugins/HudClient/volumepeakdetector.cpp
 
26
  ${CMAKE_SOURCE_DIR}/plugins/HudClient/hudtoolbarmodel.cpp
 
27
  fake_hud_plugin.cpp
 
28
  fake_libhud_client.cpp
 
29
  libhud_client_stub.cpp
 
30
)
 
31
 
 
32
add_library(FakeHudClientQml MODULE ${HudQML_SOURCES})
 
33
target_link_libraries(FakeHudClientQml
 
34
  ${Qt5Core_LIBRARIES}
 
35
  ${Qt5Quick_LIBRARIES}
 
36
  ${DEEQT_LDFLAGS}
 
37
  ${GOBJECT_LDFLAGS}
 
38
  ${PULSE_LDFLAGS}
 
39
)
 
40
 
 
41
qt5_use_modules(FakeHudClientQml Qml)
 
42
 
 
43
# copy qmldir file into build directory for shadow builds
 
44
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
 
45
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
 
46
    )