##*************************************************************************##
##  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(sourcecodeviewer ${PLUGIN_TYPE} CLASS_NAME EditorPlugin
    CPPSyntaxHighlighter.cpp
    CPPSyntaxHighlighter.h
    EditorPlugin.cpp
    EditorPlugin.h
    EditorConfig.cpp
    EditorConfig.h
    SourceCodeEditor.cpp
    SourceCodeEditor.h
    SyntaxHighlighter.cpp
    SyntaxHighlighter.h
    FortranSyntaxHighlighter.cpp
    FortranSyntaxHighlighter.h
    PythonSyntaxHighlighter.cpp
    PythonSyntaxHighlighter.h

)

target_link_libraries(sourcecodeviewer PRIVATE
    CubeGui
)

install(TARGETS sourcecodeviewer
    LIBRARY DESTINATION ${PLUGIN_DIR}
)
