Debian Codegraph @

tests/mocks/Lomiri/InputInfo/CMakeLists.txt

raw
1 # TODO: This is a copy of the plugin in plugins/Lomiri/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.
5
6 find_package(Qt5Core REQUIRED)
7 find_package(Qt5Quick REQUIRED)
8
9 include_directories(
10 ${CMAKE_CURRENT_SOURCE_DIR}
11 ${CMAKE_CURRENT_BINARY_DIR}
12 ${CMAKE_SOURCE_DIR}/plugins/Lomiri/InputInfo/
13 )
14
15 add_definitions(-DLOMIRI_MOCKS)
16
17 set(MockInputInfo_SOURCES
18 plugin.cpp
19 qinputdeviceinfo_mock.cpp
20 mockcontroller.cpp
21 ${CMAKE_SOURCE_DIR}/plugins/Lomiri/InputInfo/qinputinfo.cpp
22 ${CMAKE_SOURCE_DIR}/plugins/Lomiri/InputInfo/qdeclarativeinputdevicemodel.cpp
23 )
24
25 add_library(MockInputInfo SHARED
26 ${MockInputInfo_SOURCES}
27 )
28
29 target_link_libraries(MockInputInfo Qt5::Core Qt5::Qml Qt5::Quick)
30
31 add_lomiri_mock(Lomiri.InputInfo 0.1 Lomiri/InputInfo TARGETS MockInputInfo)