~verzegnassi-stefano/ubuntu-docviewer-app/desktop-support2

« back to all changes in this revision

Viewing changes to src/plugin/file-qml-plugin/InputInfo/CMakeLists.txt

  • Committer: Stefano Verzegnassi
  • Date: 2016-02-03 13:57:41 UTC
  • Revision ID: stefano92.100@gmail.com-20160203135741-8hy2s2s6y22i0jzt
Forgot to 'bzr add' new files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is a temporary snapshot of the WIP QInputInfo API as we
 
2
# require this in unity now but upstream isn't finished yet.
 
3
# Eventually this should be dropped in favor of the upstream
 
4
# QInputInfo API.
 
5
 
 
6
project(InputInfo)
 
7
 
 
8
find_package(Qt5Core REQUIRED)
 
9
find_package(Qt5Quick REQUIRED)
 
10
 
 
11
pkg_check_modules(LIBUDEV REQUIRED libudev)
 
12
pkg_check_modules(LIBEVDEV REQUIRED libevdev)
 
13
 
 
14
include_directories(
 
15
    ${CMAKE_CURRENT_SOURCE_DIR}
 
16
    ${CMAKE_CURRENT_BINARY_DIR}
 
17
    ${LIBUDEV_INCLUDE_DIRS}
 
18
    ${LIBEVDEV_INCLUDE_DIRS}
 
19
)
 
20
 
 
21
set(InputInfo_SOURCES
 
22
    plugin.cpp
 
23
    qinputinfo.cpp
 
24
    qdeclarativeinputdevicemodel.cpp
 
25
    linux/qinputdeviceinfo_linux.cpp
 
26
)
 
27
 
 
28
add_library(InputInfo SHARED
 
29
    ${InputInfo_SOURCES}
 
30
)
 
31
 
 
32
target_link_libraries(InputInfo
 
33
    ${LIBUDEV_LDFLAGS}
 
34
    ${LIBEVDEV_LDFLAGS}
 
35
)
 
36
 
 
37
qt5_use_modules(InputInfo Core Qml Quick)
 
38
 
 
39
add_unity8_plugin(Unity.InputInfo 0.1 Unity/InputInfo TARGETS InputInfo)