on ac4b821 help sign in
unity8/plugins/LightDM/CMakeLists.txt
42 lines 1.2 kB history raw
1# export_qmlplugin macro
2include(Plugins)
4# Dependencies
5include(FindPkgConfig)
6pkg_check_modules(LIBUSERMETRICSOUTPUT REQUIRED libusermetricsoutput-1)
7# TODO: Once we split out a separate greeter process, uncomment these lines
8#pkg_check_modules(LIBLIGHTDM REQUIRED liblightdm-qt5-2)
10include_directories(
11 ${CMAKE_CURRENT_SOURCE_DIR}
12 ${CMAKE_CURRENT_BINARY_DIR}
13 ${CMAKE_SOURCE_DIR}/plugins/Utils
14 ${CMAKE_SOURCE_DIR}/tests/mocks/LightDM
15 #${LIBLIGHTDM_INCLUDE_DIRS}
16 ${LIBUSERMETRICSOUTPUT_INCLUDE_DIRS}
19set(QMLPLUGIN_SRC
20 ../Utils/qsortfilterproxymodelqml.cpp # FIXME evaluate a more generic approach for using other plugins
21 DBusGreeterList.cpp
22 Greeter.cpp
23 plugin.cpp
24 UsersModel.cpp
25 )
27add_library(LightDM-qml MODULE
28 ${QMLPLUGIN_SRC}
29 )
31target_link_libraries(LightDM-qml
32 MockLightDM-demo
33# TODO: Once we split out a separate greeter process, uncomment these lines
34# ${LIBLIGHTDM_LDFLAGS}
35 ${LIBUSERMETRICSOUTPUT_LDFLAGS}
36 )
38qt5_use_modules(LightDM-qml DBus Gui Qml)
40# export the qmldir qmltypes and plugin files
41export_qmlfiles(LightDM LightDM)
42export_qmlplugin(LightDM 0.1 LightDM TARGETS LightDM-qml)