CMakeLists.txt 1.56 KB
Newer Older
1 2 3
CMAKE_DEPENDENT_OPTION(NEKTAR_SOLVER_VORTEXWAVE
    "Build the Vortex-Wave interaction solver." ON
    "NEKTAR_BUILD_SOLVERS" OFF)
4

5 6 7 8
IF (NOT NEKTAR_BUILD_SOLVERS)
    SET(NEKTAR_SOLVER_VORTEXWAVE OFF CACHE INTERNAL "")
ENDIF()

9 10
IF( NEKTAR_SOLVER_VORTEXWAVE )
    SET(VortexWaveInteractionSolverSource
Andrea Isoni's avatar
Andrea Isoni committed
11
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusion.cpp
12
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusionReaction.cpp
Andrea Isoni's avatar
Andrea Isoni committed
13 14
       ./VortexWaveInteraction.cpp 
       ./VortexWaveInteractionSolver.cpp 
15
       $<TARGET_OBJECTS:IncNavierStokesSolver-obj>
16 17
       )

18
    SET(CalcL2ToLinfPressureSource
19 20
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusion.cpp
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusionReaction.cpp
21
       ./CalcL2ToLinfPressure.cpp
22
       ./VortexWaveInteraction.h
23
       ./VortexWaveInteraction.cpp 
24
       $<TARGET_OBJECTS:IncNavierStokesSolver-obj>
25 26
       )

27
    SET(CalcVWIplusPressureSource
28 29 30 31
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusion.cpp
       ../ADRSolver/EquationSystems/SteadyAdvectionDiffusionReaction.cpp
       ./CalcVWIplusPressure.cpp
       ./VortexWaveInteraction.cpp 
32
       $<TARGET_OBJECTS:IncNavierStokesSolver-obj>
33 34
       )

35
    SUBDIRS(utilities)
36

37
    ADD_SOLVER_EXECUTABLE(VortexWaveInteractionSolver SOURCES
38 39 40 41 42 43
	${VortexWaveInteractionSolverSource})
    ADD_SOLVER_UTILITY(CalcL2ToLinfPressure VortexWaveInteractionSolver SOURCES
	${CalcL2ToLinfPressureSource})
    ADD_SOLVER_UTILITY(CalcVWIplusPressure VortexWaveInteractionSolver SOURCES
	${CalcVWIplusPressureSource})
ENDIF( NEKTAR_SOLVER_VORTEXWAVE )