Warning, /frameworks/solid/src/imports/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 find_package(Qt${QT_MAJOR_VERSION}Qml ${REQUIRED_QT_VERSION} CONFIG QUIET) 0002 0003 set_package_properties(Qt${QT_MAJOR_VERSION}Qml PROPERTIES URL "git://gitorious.org/qt/qtdeclarative.git" 0004 DESCRIPTION "QML support for Solid" 0005 TYPE OPTIONAL 0006 PURPOSE "Allows to use Solid in QML code" 0007 ) 0008 0009 0010 if(NOT TARGET Qt${QT_MAJOR_VERSION}::Qml) 0011 message(STATUS "Qt${QT_MAJOR_VERSION}Qml not found, qml imports will not be built.") 0012 return() 0013 endif() 0014 0015 set(solidextensionplugin_SRCS 0016 ${solid_common_SRCS} 0017 solidextensionplugin.cpp 0018 devices.cpp 0019 ) 0020 0021 add_library(solidextensionplugin SHARED ${solidextensionplugin_SRCS}) 0022 0023 target_link_libraries( 0024 solidextensionplugin 0025 KF5::Solid 0026 Qt${QT_MAJOR_VERSION}::Core 0027 Qt${QT_MAJOR_VERSION}::Qml 0028 ) 0029 0030 if(MINGW) 0031 set_target_properties(solidextensionplugin PROPERTIES PREFIX "") 0032 endif() 0033 0034 install(TARGETS solidextensionplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/solid) 0035 install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/solid) 0036