Newer
Older
minerva / Userland / Applications / Spreadsheet / CMakeLists.txt
@minerva minerva on 13 Jul 1 KB Initial commit
minerva_component(
    Spreadsheet
    TARGETS Spreadsheet
    DEPENDS WebContent
)

stringify_gml(CondFormatting.gml CondFormattingGML.h cond_fmt_gml)
stringify_gml(CondView.gml CondFormattingViewGML.h cond_fmt_view_gml)
stringify_gml(csv_import.gml CSVImportGML.h csv_import_gml)
stringify_gml(csv_export.gml CSVExportGML.h csv_export_gml)
stringify_gml(select_format_page.gml FormatSelectionPageGML.h select_format_page_gml)

set(SOURCES
    Cell.cpp
    CellSyntaxHighlighter.cpp
    CellType/Date.cpp
    CellType/Format.cpp
    CellType/Identity.cpp
    CellType/Numeric.cpp
    CellType/String.cpp
    CellType/Type.cpp
    CellTypeDialog.cpp
    ExportDialog.cpp
    HelpWindow.cpp
    ImportDialog.cpp
    JSIntegration.cpp
    Readers/XSV.cpp
    Spreadsheet.cpp
    SpreadsheetModel.cpp
    SpreadsheetView.cpp
    SpreadsheetWidget.cpp
    Workbook.cpp
    main.cpp
)

set(GENERATED_SOURCES
    CSVExportGML.h
    CSVImportGML.h
    CondFormattingGML.h
    CondFormattingViewGML.h
    FormatSelectionPageGML.h
)

minerva_app(Spreadsheet ICON app-spreadsheet)
target_link_libraries(Spreadsheet PRIVATE LibConfig LibCore LibFileSystem LibFileSystemAccessClient LibGfx LibGUI LibJS LibMain LibMarkdown LibSyntax LibWebView LibWeb LibURL)

minerva_test(Writers/Test/TestXSVWriter.cpp Spreadsheet)

minerva_test(Readers/Test/TestXSV.cpp Spreadsheet)
target_sources(TestXSV PRIVATE Readers/XSV.cpp)