Warning, /plasma/lightdm-kde-greeter/kcm/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 find_package(KDE4 REQUIRED)
0002 
0003 include(KDE4Defaults)
0004 include(MacroLibrary)
0005 
0006 # Makes it easy to reuse code from the qml lib. A bit ugly but I don't feel
0007 # like setting up a static library for one class.
0008 set(LIB_DIR ${CMAKE_SOURCE_DIR}/lib)
0009 
0010 # Add the compiler flags
0011 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
0012 include_directories(
0013   ${CMAKE_SOURCE_DIR}
0014   ${CMAKE_BINARY_DIR}
0015   ${KDE4_INCLUDES}
0016   ${QLIGHTDM_INCLUDE_DIR}
0017   ${LIB_DIR}
0018 )
0019 
0020 add_subdirectory(configwidgets)
0021 
0022 # Insert your sources here
0023 set(LIGHTDM_KCM_SRCS
0024     themeconfig.cpp
0025     themesmodel.cpp
0026     themesdelegate.cpp
0027     coreconfig.cpp
0028     lightdmkcm.cpp
0029     configoptions.cpp
0030     ${LIB_DIR}/extrarowproxymodel.cpp
0031     ${LIB_DIR}/usersmodel.cpp
0032     ${LIB_DIR}/lightdmpackagestructure.cpp
0033 )
0034 
0035 set(LIGHTDM_KCM_UI
0036     themeconfig.ui
0037     coreconfig.ui)
0038 
0039 kde4_add_ui_files(LIGHTDM_KCM_SRCS ${LIGHTDM_KCM_UI})
0040 
0041 kde4_add_plugin(kcm_lightdm
0042                 ${LIGHTDM_KCM_SRCS})
0043 
0044 
0045 # Link against the needed libraries
0046 target_link_libraries(kcm_lightdm
0047   ${KDE4_KDEUI_LIBS}
0048   ${QT_QTUITOOLS_LIBRARY}
0049   ${QT_QTDECLARATIVE_LIBRARY}
0050   ${KDE4_PLASMA_LIBS}
0051   ${QLIGHTDM_LIBRARIES}
0052   ${KDE4_KIO_LIBS}
0053   lightdm_config_widgets
0054 )
0055 
0056 install(TARGETS kcm_lightdm
0057           DESTINATION ${PLUGIN_INSTALL_DIR})
0058 
0059 install(FILES kcm_lightdm.desktop
0060          DESTINATION ${SERVICES_INSTALL_DIR}
0061 )
0062 
0063 kde4_add_executable(kcmlightdmhelper helper.cpp)
0064 target_link_libraries(kcmlightdmhelper ${KDE4_KDECORE_LIBS} ${KDE4_PLASMA_LIBS})
0065 
0066 kde4_install_auth_helper_files(kcmlightdmhelper org.kde.kcontrol.kcmlightdm root)
0067 install(TARGETS kcmlightdmhelper DESTINATION ${LIBEXEC_INSTALL_DIR})
0068 
0069 kde4_install_auth_actions(org.kde.kcontrol.kcmlightdm kcm_lightdm.actions)
0070 
0071 macro_display_feature_log()
0072 
0073