~mhr3/unity8/fix-1297246

« back to all changes in this revision

Viewing changes to tests/mocks/Ubuntu/Application/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
 
 
7
set(FakeUbuntuApplicationQml_SOURCES
 
8
    plugin.cpp
 
9
    ApplicationInfo.cpp
 
10
    ApplicationImage.cpp
 
11
    ApplicationListModel.cpp
 
12
    ApplicationManager.cpp
 
13
)
 
14
 
 
15
add_library(FakeUbuntuApplicationQml MODULE ${FakeUbuntuApplicationQml_SOURCES})
 
16
 
 
17
qt5_use_modules(FakeUbuntuApplicationQml Core Quick)
 
18
 
 
19
# copy files into build directory for shadow builds
 
20
add_custom_target(UbuntuAppQmlDirFile ALL
 
21
    COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/qmldir" ${CMAKE_CURRENT_BINARY_DIR}
 
22
    DEPENDS qmldir
 
23
)
 
24
add_custom_target(InputFilterAreaQmlFile ALL
 
25
    COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/InputFilterArea.qml" ${CMAKE_CURRENT_BINARY_DIR}
 
26
    DEPENDS InputFilterArea.qml
 
27
)
 
28
 
 
29
install(TARGETS FakeUbuntuApplicationQml
 
30
    DESTINATION ${SHELL_APP_DIR}/plugins/mocks/Ubuntu/Application
 
31
    )
 
32
 
 
33
install(FILES qmldir InputFilterArea.qml
 
34
    DESTINATION ${SHELL_APP_DIR}/plugins/mocks/Ubuntu/Application
 
35
    )