on a142f21 help sign in
unity8/plugins/LightDM/CMakeLists.txt
40 lines 1.1 kB history raw
1pkg_check_modules(LIBUSERMETRICSOUTPUT REQUIRED libusermetricsoutput-1)
2# TODO: Once we split out a separate greeter process, uncomment these lines
3#pkg_check_modules(LIBLIGHTDM REQUIRED liblightdm-qt5-2)
5add_subdirectory(liblightdm)
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 ${libunity8-private_SOURCE_DIR}
14 ${LIBUSERMETRICSOUTPUT_INCLUDE_DIRS}
17set(QMLPLUGIN_SRC
18 ../Utils/unitysortfilterproxymodelqml.cpp # FIXME evaluate a more generic approach for using other plugins
19 DBusGreeter.cpp
20 DBusGreeterList.cpp
21 Greeter.cpp
22 plugin.cpp
23 UsersModel.cpp
24 )
26add_library(LightDM-qml MODULE
27 ${QMLPLUGIN_SRC}
28 )
30target_link_libraries(LightDM-qml
31 integratedLightDM
32 unity8-private
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)
40add_unity8_plugin(LightDM 0.1 LightDM TARGETS LightDM-qml)