##*************************************************************************##
##  CUBE        http://www.scalasca.org/                                   ##
##*************************************************************************##
##  Copyright (c) 2024-2025                                                ##
##  Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre          ##
##                                                                         ##
##  This software may be modified and distributed under the terms of       ##
##  a BSD-style license.  See the COPYING file in the package base         ##
##  directory for details.                                                 ##
##*************************************************************************##


set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/..)

qt_add_plugin(metriceditor ${PLUGIN_TYPE} CLASS_NAME MetricEditorPlugin
    CubePLSyntaxHighlighter.cpp
    CubePLSyntaxHighlighter.h
    DerivedMetricEditor.cpp
    DerivedMetricEditor.h
    DerivedMetricsCollection.cpp
    DerivedMetricsCollection.h
    HtmlHelpCollection.cpp
    HtmlHelpCollection.h
    MetricData.cpp
    MetricData.h
    MetricEditor.cpp
    MetricEditor.h
    NewDerivatedMetricWidget.cpp
    NewDerivatedMetricWidget.h
)

target_link_libraries(metriceditor PRIVATE
    CubeGui
    Qt::Network
)

install(TARGETS metriceditor
    LIBRARY DESTINATION ${PLUGIN_DIR}
)
