Warning, /plasma/kscreenlocker/greeter/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 remove_definitions(-DTRANSLATION_DOMAIN=\"kscreenlocker\") 0002 add_definitions(-DTRANSLATION_DOMAIN=\"kscreenlocker_greet\") 0003 0004 include_directories( 0005 ${CMAKE_CURRENT_BINARY_DIR} 0006 ${CMAKE_CURRENT_BINARY_DIR}/../ 0007 ) 0008 0009 set(kscreenlocker_authenticator_SRCS 0010 pamauthenticators.cpp 0011 pamauthenticators.h 0012 pamauthenticator.cpp 0013 pamauthenticator.h 0014 ) 0015 0016 ecm_qt_declare_logging_category(kscreenlocker_authenticator_SRCS 0017 HEADER kscreenlocker_greet_logging.h 0018 IDENTIFIER KSCREENLOCKER_GREET 0019 CATEGORY_NAME kscreenlocker_greet 0020 DEFAULT_SEVERITY Info 0021 DESCRIPTION "KScreenLocker (greeter)" 0022 EXPORT KSCREENLOCKER 0023 ) 0024 0025 set(kscreenlocker_greet_SRCS 0026 greeterapp.cpp 0027 main.cpp 0028 powermanagement.cpp 0029 noaccessnetworkaccessmanagerfactory.cpp 0030 greeterapp.h 0031 powermanagement.h 0032 noaccessnetworkaccessmanagerfactory.h 0033 ) 0034 0035 add_library(kscreenlocker_authenticator OBJECT ${kscreenlocker_authenticator_SRCS}) 0036 target_link_libraries(kscreenlocker_authenticator 0037 Qt::Core 0038 ${PAM_LIBRARIES} 0039 ) 0040 0041 qt_add_resources(kscreenlocker_greet_SRCS fallbacktheme.qrc) 0042 0043 ecm_add_wayland_client_protocol(kscreenlocker_greet_SRCS 0044 PROTOCOL ../protocols/ksld.xml 0045 BASENAME ksld 0046 ) 0047 0048 add_executable(kscreenlocker_greet ${kscreenlocker_greet_SRCS}) 0049 0050 target_link_libraries(kscreenlocker_greet 0051 settings 0052 kscreenlocker_authenticator 0053 KF6::Package 0054 KF6::Crash 0055 KF6::I18n 0056 KF6::ConfigGui 0057 KF6::KIOCore 0058 KF6::WindowSystem 0059 Plasma::PlasmaQuick 0060 Qt::Quick 0061 Qt::Qml 0062 Qt::GuiPrivate 0063 X11::X11 0064 Wayland::Client 0065 LayerShellQt::Interface 0066 KF6::ScreenDpms 0067 ) 0068 0069 # KSCREENLOCKER_PAM_SERVICE, if defined, will already have been 0070 # enclosed in double quotes by the define_pam_service macro. 0071 if (NOT DEFINED KSCREENLOCKER_PAM_PASSWORD_SERVICE) 0072 set(KSCREENLOCKER_PAM_PASSWORD_SERVICE "\"kde\"") 0073 endif() 0074 0075 if (NOT DEFINED KSCREENLOCKER_PAM_FINGERPRINT_SERVICE) 0076 set(KSCREENLOCKER_PAM_FINGERPRINT_SERVICE "\"kde-fingerprint\"") 0077 endif() 0078 0079 if (NOT DEFINED KSCREENLOCKER_PAM_SMARTCARD_SERVICE) 0080 set(KSCREENLOCKER_PAM_SMARTCARD_SERVICE "\"kde-smartcard\"") 0081 endif() 0082 0083 target_compile_definitions(kscreenlocker_greet PRIVATE 0084 KCHECKPASS_BIN="kcheckpass" 0085 KSCREENLOCKER_PAM_SERVICE=${KSCREENLOCKER_PAM_SERVICE} 0086 KSCREENLOCKER_PAM_FINGERPRINT_SERVICE=${KSCREENLOCKER_PAM_FINGERPRINT_SERVICE} 0087 KSCREENLOCKER_PAM_SMARTCARD_SERVICE=${KSCREENLOCKER_PAM_SMARTCARD_SERVICE} 0088 ) 0089 0090 install(TARGETS kscreenlocker_greet DESTINATION ${KDE_INSTALL_LIBEXECDIR}) 0091 0092 install(DIRECTORY themes/org.kde.passworddialog DESTINATION ${KDE_INSTALL_DATADIR}/ksmserver/screenlocker) 0093 0094 add_subdirectory(autotests)