on 2139c25 help sign in
unity8/plugins/LightDM/CMakeLists.txt
40 lines 1.1 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}/tests/mocks/LightDM
14 #${LIBLIGHTDM_INCLUDE_DIRS}
15 ${LIBUSERMETRICSOUTPUT_INCLUDE_DIRS}
18set(QMLPLUGIN_SRC
19 ../Utils/qsortfilterproxymodelqml.cpp # FIXME evaluate a more generic approach for using other plugins
20 Greeter.cpp
21 plugin.cpp
22 UsersModel.cpp
23 )
25add_library(LightDM-qml MODULE
26 ${QMLPLUGIN_SRC}
27 )
29target_link_libraries(LightDM-qml
30 MockLightDM-demo
31# TODO: Once we split out a separate greeter process, uncomment these lines
32# ${LIBLIGHTDM_LDFLAGS}
33 ${LIBUSERMETRICSOUTPUT_LDFLAGS}
34 )
36qt5_use_modules(LightDM-qml Gui Qml)
38# export the qmldir qmltypes and plugin files
39export_qmlfiles(LightDM LightDM)
40export_qmlplugin(LightDM 0.1 LightDM TARGETS LightDM-qml)