CMakeLists.txt 1.26 KB
Newer Older
1
2
3
4
5
6
7
set(AMDIS_EXTENSIONS_PRECONDITIONER_HEADERS "")
set(AMDIS_EXTENSIONS_PRECONDITIONER_SOURCES "")

if (ENABLE_PARALLEL_DOMAIN)
  list(APPEND AMDIS_EXTENSIONS_PRECONDITIONER_HEADERS
    PetscSolverPfc.h
    PetscSolverPfc_diag.h
8
    PetscSolverNavierStokes2.h
9
10
11
12
  )
  list(APPEND AMDIS_EXTENSIONS_PRECONDITIONER_SOURCES
    PetscSolverPfc.cc
    PetscSolverPfc_diag.cc
13
    PetscSolverNavierStokes2.cc
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  )
elseif (ENABLE_SEQ_PETSC)
  list(APPEND AMDIS_EXTENSIONS_PRECONDITIONER_HEADERS
    PetscPreconPfc.h
    PetscPreconPfcDiag.h
    PetscPreconCahnHilliard.h
  )

  list(APPEND AMDIS_EXTENSIONS_PRECONDITIONER_SOURCES
    PetscPreconPfc.cc
    PetscPreconPfcDiag.cc
    PetscPreconCahnHilliard.cc
  )
else () # MTL
  list(APPEND AMDIS_EXTENSIONS_PRECONDITIONER_HEADERS
    MTLPreconPfc.h
    MTLPreconPfc.hh
    MTLPreconPfc_diag.h
    MTLPreconPfc_diag.hh
    MTLPreconCahnHilliard.h
    MTLPreconCahnHilliard.hh
    MTLPreconCahnHilliard2.h
    MTLPreconCahnHilliard2.hh
    MTLPreconNavierStokes.h
    MTLPreconNavierStokes.hh
  )
endif ()

target_sources_local(AMDiS${POSTFIX} PRIVATE
  ${AMDIS_EXTENSIONS_PRECONDITIONER_HEADERS}
  ${AMDIS_EXTENSIONS_PRECONDITIONER_SOURCES}
)

install(FILES
  ${AMDIS_EXTENSIONS_PRECONDITIONER_HEADERS}
  DESTINATION include/amdis/extensions/preconditioner/
)