Warning, /pim/itinerary/src/solidextras/qml/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 add_library(solidextrasqmlplugin solidextrasqmlplugin.cpp)
0005 target_link_libraries(solidextrasqmlplugin
0006     Qt::Qml
0007     SolidExtras
0008 )
0009 
0010 # make examples work without installation
0011 if (NOT CMAKE_VERSION VERSION_LESS 3.14)
0012     set_property(TARGET solidextrasqmlplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/org/kde/solidextras)
0013     file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/org/kde/solidextras/qmldir COPY_ON_ERROR SYMBOLIC)
0014 else()
0015     message(WARNING "CMake is too old, cannot setup QML plugins to work without installation")
0016 endif()
0017 
0018 install(TARGETS solidextrasqmlplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/solidextras)
0019 install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/solidextras)