1
# This is a copy of the normal LightDM plugin, but instead of statically
2
# linking in the lightdm bits, this one uses shared libraries so we can swap
3
# out different sets of users for different tests. When we finally switch to
4
# actually using the system liblightdm in the normal plugin, this version can
9
add_subdirectory(single)
12
${CMAKE_CURRENT_SOURCE_DIR}
13
${CMAKE_CURRENT_BINARY_DIR}
17
${CMAKE_SOURCE_DIR}/plugins/LightDM/Greeter.cpp
18
${CMAKE_SOURCE_DIR}/plugins/LightDM/plugin.cpp
19
${CMAKE_SOURCE_DIR}/plugins/LightDM/UsersModel.cpp
20
${CMAKE_SOURCE_DIR}/plugins/Utils/qsortfilterproxymodelqml.cpp
23
add_library(MockLightDM-qml MODULE
27
# We want to link to liblightdm-qt5-2, but we don't want to depend on it being
28
# installed on the system. So we make sure we link to our full fake version
29
# At run time, we can point to whichever version we happen to be using via
31
add_dependencies(MockLightDM-qml MockLightDM-full)
32
target_link_libraries(MockLightDM-qml
33
-L${CMAKE_CURRENT_BINARY_DIR}/full
37
qt5_use_modules(MockLightDM-qml Gui Qml)
39
# copy qmldir file into build directory for shadow builds
40
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
41
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
44
install(TARGETS MockLightDM-qml
45
DESTINATION ${SHELL_APP_DIR}/plugins/mocks/LightDM
49
DESTINATION ${SHELL_APP_DIR}/plugins/mocks/LightDM