PROJECT(SingleCellSimulationPlugin)

# Retrieve some CellML API and LLVM settings

RETRIEVE_CELLML_API_SETTINGS()
RETRIEVE_LLVM_SETTINGS()

# Add the plugin

ADD_PLUGIN(SingleCellSimulation
    SOURCES
        ../../coreinterface.cpp
        ../../guiinterface.cpp
        ../../i18ninterface.cpp
        ../../interface.cpp
        ../../plugin.cpp
        ../../plugininfo.cpp
        ../../solverinterface.cpp

        src/singlecellsimulationgraphpanel.cpp
        src/singlecellsimulationgraphpanels.cpp
        src/singlecellsimulationplugin.cpp
        src/singlecellsimulationview.cpp
    HEADERS_MOC
        ../../plugin.h

        src/singlecellsimulationgraphpanel.h
        src/singlecellsimulationgraphpanels.h
        src/singlecellsimulationplugin.h
        src/singlecellsimulationview.h
    UIS
        src/singlecellsimulationview.ui
    DEFINITIONS
        ${LLVM_DEFINITIONS}
    INCLUDE_DIRS
        ../../3rdparty/Qwt/src

        src
    OPENCOR_DEPENDENCIES
        CellMLAPI
        CellMLSupport
        Computer
        Core
        LLVM
        Qwt
    QT_DEPENDENCIES
        QtCore
        QtGui
        QtSvg
        QtXml
    EXTERNAL_DEPENDENCIES
        ${CELLML_API_EXTERNAL_DEPENDENCIES}
        ${LLVM_EXTERNAL_DEPENDENCIES}
)

PROJECT(SingleCellSimulationPlugin)

# Retrieve some CellML API and LLVM settings

RETRIEVE_CELLML_API_SETTINGS()
RETRIEVE_LLVM_SETTINGS()

# Add the plugin

ADD_PLUGIN(SingleCellSimulation
    SOURCES
        ../../coreinterface.cpp
        ../../guiinterface.cpp
        ../../i18ninterface.cpp
        ../../interface.cpp
        ../../plugin.cpp
        ../../plugininfo.cpp
        ../../solverinterface.cpp

        src/singlecellsimulationgraphpanel.cpp
        src/singlecellsimulationgraphpanels.cpp
        src/singlecellsimulationplugin.cpp
        src/singlecellsimulationview.cpp
    HEADERS_MOC
        ../../plugin.h

        src/singlecellsimulationgraphpanel.h
        src/singlecellsimulationgraphpanels.h
        src/singlecellsimulationplugin.h
        src/singlecellsimulationview.h
    UIS
        src/singlecellsimulationview.ui
    DEFINITIONS
        ${LLVM_DEFINITIONS}
    INCLUDE_DIRS
        ../../3rdparty/Qwt/src

        src
    OPENCOR_DEPENDENCIES
        CellMLAPI
        CellMLSupport
        Computer
        Core
        CoreSolver
        LLVM
        Qwt
    QT_DEPENDENCIES
        QtCore
        QtGui
        QtSvg
        QtXml
    EXTERNAL_DEPENDENCIES
        ${CELLML_API_EXTERNAL_DEPENDENCIES}
        ${LLVM_EXTERNAL_DEPENDENCIES}
)

Make the SingleCellSimulation plugin depend on the CoreSolver plugin.
Make the SingleCellSimulation plugin depend on the CoreSolver plugin.
