on bbbdccd help sign in
unity8/tests/mocks/Unity/InputInfo/CMakeLists.txt
31 lines 919 B history raw
1# TODO: This is a copy of the plugin in plugins/Unity/InputInfo which in
2# turn is a copy of the WIP upstream InputInfo API. This needs to be updated
3# and brought in sync if our snapshot is updated.
4# Long term goal is to merge the InputInfo API upstream.
6find_package(Qt5Core REQUIRED)
7find_package(Qt5Quick REQUIRED)
9include_directories(
10 ${CMAKE_CURRENT_SOURCE_DIR}
11 ${CMAKE_CURRENT_BINARY_DIR}
12 ${CMAKE_SOURCE_DIR}/plugins/Unity/InputInfo/
15add_definitions(-DUNITY_MOCKS)
17set(MockInputInfo_SOURCES
18 plugin.cpp
19 qinputdeviceinfo_mock.cpp
20 mockcontroller.cpp
21 ${CMAKE_SOURCE_DIR}/plugins/Unity/InputInfo/qinputinfo.cpp
22 ${CMAKE_SOURCE_DIR}/plugins/Unity/InputInfo/qdeclarativeinputdevicemodel.cpp
25add_library(MockInputInfo SHARED
26 ${MockInputInfo_SOURCES}
29qt5_use_modules(MockInputInfo Core Qml Quick)
31add_unity8_mock(Unity.InputInfo 0.1 Unity/InputInfo TARGETS MockInputInfo)