~macslow/unity8/fix-1475678

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Gestures/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(UbuntuGestureQml_SOURCES
 
8
    plugin.cpp
 
9
    AxisVelocityCalculator.cpp
 
10
    DirectionalDragArea.cpp
 
11
)
 
12
 
 
13
add_definitions(-DUBUNTUGESTURES_LIBRARY)
 
14
 
 
15
add_library(UbuntuGestureQml MODULE ${UbuntuGestureQml_SOURCES})
 
16
 
 
17
qt5_use_modules(UbuntuGestureQml Core Quick)
 
18
 
 
19
# copy files into build directory for shadow builds
 
20
add_custom_target(UbuntuGestureQmlDirFile ALL
 
21
    COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/qmldir" ${CMAKE_CURRENT_BINARY_DIR}
 
22
    DEPENDS qmldir
 
23
)
 
24
 
 
25
install(TARGETS UbuntuGestureQml
 
26
    DESTINATION ${SHELL_APP_DIR}/plugins/Ubuntu/Gestures
 
27
    )
 
28
 
 
29
install(FILES qmldir
 
30
    DESTINATION ${SHELL_APP_DIR}/plugins/Ubuntu/Gestures
 
31
    )