~feng-kylin/unity8/cantClickOnDashWhileDraggingAnIcon

« back to all changes in this revision

Viewing changes to plugins/Unity/InputInfo/CMakeLists.txt

  • Committer: handsome_feng
  • Date: 2015-07-23 01:26:54 UTC
  • mfrom: (1831.1.38 unity8)
  • Revision ID: 445865575@qq.com-20150723012654-nmfj0b4v1dhorola
merge trunk

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
    qdeclarativeinputdeviceinfo.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)