Warning, /plasma/lightdm-kde-greeter/kcm/configwidgets/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #We want to expose our new config widgets, but because we use QUiLoader we need a QtPlugin to explain how to load/create them. 0002 #We build a static version of this QtPlugin then the KCM includes this, and uses Q_IMPORT_PLUGIN to reference it. 0003 #alternately we could install this as an additional library, but that seems extra complicated. 0004 0005 0006 # Insert your sources here 0007 set(LIGHTDM_CONFIG_WIDGET_SRCS 0008 selectimagebutton.cpp 0009 selectimagebuttondesignerfactory.cpp 0010 ) 0011 0012 #not sure if this is a bad hack, CMake made me do it 0013 add_definitions(-fPIC) 0014 0015 kde4_add_plugin(lightdm_config_widgets STATIC 0016 ${LIGHTDM_CONFIG_WIDGET_SRCS}) 0017 0018 # Link against the needed libraries 0019 target_link_libraries(lightdm_config_widgets 0020 ${KDE4_KDEUI_LIBS} 0021 ${KDE4_KIO_LIBS} 0022 ) 0023 0024 #uncomment this if building a non-static version of this lib. 0025 #install( TARGETS lightdm_config_widgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )