on bbbdccd help sign in
40 lines 1.1 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 ${GLIB_INCLUDE_DIRS}
17 ${LIBUSERMETRICSOUTPUT_INCLUDE_DIRS}
20target_link_libraries(integratedLightDM
21 ${GLIB_LIBRARIES}
22 ${LIBUSERMETRICSOUTPUT_LDFLAGS}
23 -lpam
25target_link_libraries(MockLightDM-demo-shared
26 ${GLIB_LIBRARIES}
27 ${LIBUSERMETRICSOUTPUT_LDFLAGS}
28 -lpam
31qt5_use_modules(integratedLightDM Concurrent Gui)
32qt5_use_modules(MockLightDM-demo-shared Concurrent Gui)
34set_target_properties(integratedLightDM PROPERTIES COMPILE_FLAGS -fPIC)
35set_target_properties(MockLightDM-demo-shared PROPERTIES
36 OUTPUT_NAME lightdm-qt5-2)
38install(TARGETS MockLightDM-demo-shared
39 DESTINATION ${SHELL_INSTALL_QML}/mocks/IntegratedLightDM/demo
40 )