CMakeLists.txt 997 Bytes
Newer Older
Kirill Terekhov's avatar
Kirill Terekhov committed
1
set(SOURCE
Dmitry Bagaev's avatar
Dmitry Bagaev committed
2
        ${SOURCE}
Dmitry Bagaev's avatar
Dmitry Bagaev committed
3
        ${CMAKE_CURRENT_SOURCE_DIR}/solver.cpp
4
        ${CMAKE_CURRENT_SOURCE_DIR}/OrderInfo.cpp
5
6
        ${CMAKE_CURRENT_SOURCE_DIR}/SolverMaster.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/SolverParameters.cpp
Dmitry Bagaev's avatar
Dmitry Bagaev committed
7
8
        ${CMAKE_CURRENT_SOURCE_DIR}/sparse.cpp
        )
Kirill Terekhov's avatar
Kirill Terekhov committed
9

Dmitry Bagaev's avatar
Dmitry Bagaev committed
10
11
set(HEADER
        ${HEADER}
Dmitry Bagaev's avatar
fix    
Dmitry Bagaev committed
12
13
        ${CMAKE_CURRENT_SOURCE_DIR}/SolverMaster.h
        ${CMAKE_CURRENT_SOURCE_DIR}/SolverInterface.h)
Dmitry Bagaev's avatar
Dmitry Bagaev committed
14

15
if(USE_SOLVER)
Dmitry Bagaev's avatar
Dmitry Bagaev committed
16
add_subdirectory(solver_inner)
17
add_subdirectory(solver_fcbiilu2)
18
add_subdirectory(solver_k3biilu2)
Dmitry Bagaev's avatar
Dmitry Bagaev committed
19

Dmitry Bagaev's avatar
Dmitry Bagaev committed
20
21
if (USE_SOLVER_PETSC)
    add_subdirectory(solver_petsc)
22
endif()
Dmitry Bagaev's avatar
Dmitry Bagaev committed
23

Dmitry Bagaev's avatar
Dmitry Bagaev committed
24
if (USE_SOLVER_TRILINOS AND USE_MPI)
25
26
    add_subdirectory(solver_trilinos)
endif()
Dmitry Bagaev's avatar
Dmitry Bagaev committed
27

Dmitry Bagaev's avatar
Dmitry Bagaev committed
28
if (USE_SOLVER_ANI AND TEST_FORTRAN_ANI3D)
29
30
31
    add_subdirectory(solver_ani)
endif()

32
33
34
if (USE_SOLVER_SUPERLU)
    add_subdirectory(solver_superlu)
endif()
35
endif(USE_SOLVER)
36

Kirill Terekhov's avatar
Kirill Terekhov committed
37
38
set(HEADER ${HEADER} PARENT_SCOPE)
set(SOURCE ${SOURCE} PARENT_SCOPE)
39
set(SOLVER_DEFINITIONS ${SOLVER_DEFINITIONS} PARENT_SCOPE)