on 4e77f91 help sign in
unity8/plugins/LightDM/CMakeLists.txt
37 lines 1.1 kB history raw
1# Dependencies
2include(FindPkgConfig)
3pkg_check_modules(LIBUSERMETRICSOUTPUT REQUIRED libusermetricsoutput-1)
4# TODO: Once we split out a separate greeter process, uncomment these lines
5#pkg_check_modules(LIBLIGHTDM REQUIRED liblightdm-qt5-2)
7include_directories(
8 ${CMAKE_CURRENT_SOURCE_DIR}
9 ${CMAKE_CURRENT_BINARY_DIR}
10 ${CMAKE_SOURCE_DIR}/plugins/Utils
11 ${CMAKE_SOURCE_DIR}/tests/mocks/LightDM
12 #${LIBLIGHTDM_INCLUDE_DIRS}
13 ${LIBUSERMETRICSOUTPUT_INCLUDE_DIRS}
16set(QMLPLUGIN_SRC
17 ../Utils/qsortfilterproxymodelqml.cpp # FIXME evaluate a more generic approach for using other plugins
18 DBusGreeterList.cpp
19 Greeter.cpp
20 plugin.cpp
21 UsersModel.cpp
22 )
24add_library(LightDM-qml MODULE
25 ${QMLPLUGIN_SRC}
26 )
28target_link_libraries(LightDM-qml
29 MockLightDM-demo
30# TODO: Once we split out a separate greeter process, uncomment these lines
31# ${LIBLIGHTDM_LDFLAGS}
32 ${LIBUSERMETRICSOUTPUT_LDFLAGS}
33 )
35qt5_use_modules(LightDM-qml DBus Gui Qml)
37add_unity8_plugin(LightDM 0.1 LightDM TARGETS LightDM-qml)