on 2aa2abc help sign in
37 lines 1.0 kB history raw
1pkg_check_modules(LIBUSERMETRICSOUTPUT REQUIRED libusermetricsoutput-1)
3set(LibLightDM_SOURCES
4 Greeter.cpp
5 UsersModel.cpp
6 GreeterPrivate.cpp
7 UsersModelPrivate.cpp
8 ${CMAKE_SOURCE_DIR}/plugins/Utils/qvariantlistmodel.cpp
9 )
11add_library(integratedLightDM STATIC ${LibLightDM_SOURCES})
12add_library(MockLightDM-demo-shared SHARED ${LibLightDM_SOURCES})
14include_directories(
15 ${CMAKE_CURRENT_BINARY_DIR}
16 ${LIBUSERMETRICSOUTPUT_INCLUDE_DIRS}
19target_link_libraries(integratedLightDM
20 ${LIBUSERMETRICSOUTPUT_LDFLAGS}
21 -lpam
23target_link_libraries(MockLightDM-demo-shared
24 ${LIBUSERMETRICSOUTPUT_LDFLAGS}
25 -lpam
28qt5_use_modules(integratedLightDM Concurrent Gui)
29qt5_use_modules(MockLightDM-demo-shared Concurrent Gui)
31set_target_properties(integratedLightDM PROPERTIES COMPILE_FLAGS -fPIC)
32set_target_properties(MockLightDM-demo-shared PROPERTIES
33 OUTPUT_NAME lightdm-qt5-2)
35install(TARGETS MockLightDM-demo-shared
36 DESTINATION ${SHELL_INSTALL_QML}/mocks/LightDM/demo
37 )