

TRIBITS_INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING ${CMAKE_CURRENT_SOURCE_DIR})

TRIBITS_INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING ${CMAKE_CURRENT_SOURCE_DIR}/../../utils)

IF(NOX_ENABLE_ABSTRACT_IMPLEMENTATION_EPETRA AND NOX_ENABLE_LOCA)

  TRIBITS_ADD_EXECUTABLE_AND_TEST(
    LOCA_Brusselator
    SOURCES
    Basis.H
    Basis.C
    Brusselator.H
    Brusselator.C
    Problem_Interface.H
    Problem_Interface.C
    brussCont.C
    COMM serial mpi
    TESTONLYLIBS noxtestutils
    NUM_MPI_PROCS 2
    ARGS -v
    PASS_REGULAR_EXPRESSION "All tests passed"
    )

  TRIBITS_ADD_EXECUTABLE_AND_TEST(
    LOCA_Brusselator_ShiftInvert2Matrix
    SOURCES
    Basis.H
    Basis.C
    Brusselator.H
    Brusselator.C
    Problem_Interface.H
    Problem_Interface.C
    brussCont_ShiftInvert2Matrix.C
    COMM serial mpi
    TESTONLYLIBS noxtestutils
    NUM_MPI_PROCS 2
    ARGS -v
    PASS_REGULAR_EXPRESSION "All tests passed"
    )

  TRIBITS_ADD_EXECUTABLE_AND_TEST(
    LOCA_Brusselator_Cayley2Matrix
    SOURCES
    Basis.H
    Basis.C
    Brusselator.H
    Brusselator.C
    Problem_Interface.H
    Problem_Interface.C
    brussCont_Cayley2Matrix.C
    COMM serial mpi
    TESTONLYLIBS noxtestutils
    NUM_MPI_PROCS 2
    ARGS -v
    PASS_REGULAR_EXPRESSION "All tests passed"
    )

  IF(NOX_ENABLE_EpetraExt)

    TRIBITS_ADD_EXECUTABLE_AND_TEST(
      LOCA_BrusselatorHopf
      SOURCES
      Basis.H
      Basis.C
      Brusselator.H
      Brusselator.C
      Problem_Interface.H
      Problem_Interface.C
      brussHopfCont.C
      COMM serial mpi
      NUM_MPI_PROCS 2
      TESTONLYLIBS noxtestutils
      ARGS -v
      PASS_REGULAR_EXPRESSION "All tests passed"
      )

  ENDIF()

ENDIF()
