#***************************************************************************
#* SPDX-FileCopyrightText: 2024 S. MANKOWSKI stephane@mankowski.fr
#* SPDX-FileCopyrightText: 2024 G. DE BURE support@mankowski.fr
#* SPDX-License-Identifier: GPL-3.0-or-later
#***************************************************************************
MESSAGE( STATUS "..:: CMAKE PLUGIN_ADD_OPERATION ::..")

PROJECT(plugin_add_operation)

FIND_PACKAGE(KF${QT_MAJOR_VERSION} ${KF_MIN_VERSION} COMPONENTS
  Runner
)

IF(KF${QT_MAJOR_VERSION}Runner_FOUND)
  LINK_DIRECTORIES (${LIBRARY_OUTPUT_PATH})

  ADD_LIBRARY(skrooge_add_operation MODULE skgaddoperation.cpp)
  TARGET_LINK_LIBRARIES(skrooge_add_operation KF${QT_MAJOR_VERSION}::Runner KF${QT_MAJOR_VERSION}::WidgetsAddons KF${QT_MAJOR_VERSION}::I18n KF${QT_MAJOR_VERSION}::ConfigCore)

  ########### install files ###############
ENDIF()
