mirror of https://github.com/KDE/kasts.git
20 lines
927 B
CMake
20 lines
927 B
CMake
# SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
add_library(kasts-solidextrasqmlplugin solidextrasqmlplugin.cpp)
|
|
target_link_libraries(kasts-solidextrasqmlplugin
|
|
Qt::Qml
|
|
KastsSolidExtras
|
|
)
|
|
|
|
# make examples work without installation
|
|
if (NOT CMAKE_VERSION VERSION_LESS 3.14)
|
|
set_property(TARGET kasts-solidextrasqmlplugin PROPERTY LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/org/kde/kasts/solidextras)
|
|
file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/org/kde/kasts/solidextras/qmldir COPY_ON_ERROR SYMBOLIC)
|
|
else()
|
|
message(WARNING "CMake is too old, cannot setup QML plugins to work without installation")
|
|
endif()
|
|
|
|
install(TARGETS kasts-solidextrasqmlplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kasts/solidextras)
|
|
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kasts/solidextras)
|