CMakeLists.txt 1.66 KB
Newer Older
1
2
3
4
5
6
7
project(FVDiscr)
set(SOURCE main.cpp)

add_executable(FVDiscr ${SOURCE})

target_link_libraries(FVDiscr inmost)

Kirill Terekhov's avatar
Kirill Terekhov committed
8
9
if(USE_SOLVER)
  if(USE_SOLVER_ANI)
10
11
12
13
14
    message("linking FVDiscr with ani3d and BLAS")
    target_link_libraries(FVDiscr ani3d ${BLAS_LIBRARIES})
    if(BLAS_LINKER_FLAGS)
      set_target_properties(FVDiscr PROPERTIES LINK_FLAGS "${BLAS_LINKER_FLAGS}")
    endif()
Kirill Terekhov's avatar
Kirill Terekhov committed
15
16
17
18
19
20
21
22
23
  endif()
  if(USE_SOLVER_PETSC)
    message("linking FVDiscr with PETSc")
    target_link_libraries(FVDiscr ${PETSC_LIBRARIES})
  endif()
  if(USE_SOLVER_TRILINOS)
    message("linking FVDiscr with Trilinos")
    target_link_libraries(FVDiscr ${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES})
  endif()
Kirill Terekhov's avatar
Kirill Terekhov committed
24
25
26
27
  if(USE_SOLVER_METIS)
    message("linking FVDiscr with Metis")
    target_link_libraries(FVDiscr ${METIS_LIBRARIES})
  endif()
Kirill Terekhov's avatar
Kirill Terekhov committed
28
29
30
31
  if(USE_SOLVER_MONDRIAAN)
    message("linking FVDiscr with Mondriaan")
    target_link_libraries(FVDiscr ${MONDRIAAN_LIBRARIES})
  endif()
Kirill Terekhov's avatar
Kirill Terekhov committed
32
33
34
35
  if(USE_SOLVER_SUPERLU)
    message("linking FVDiscr with SuperLU")
    target_link_libraries(FVDiscr ${SUPERLU_LIBRARIES})
  endif()
36
37
38
39
40
endif()


if(USE_PARTITIONER)
  if(USE_PARTITIONER_ZOLTAN)
Kirill Terekhov's avatar
Kirill Terekhov committed
41
    message("linking FVDiscr with Zoltan")
42
43
44
    target_link_libraries(FVDiscr ${ZOLTAN_LIBRARIES})
  endif()
  if(USE_PARTITIONER_PARMETIS)
Kirill Terekhov's avatar
Kirill Terekhov committed
45
    message("linking FVDiscr with ParMETIS")
46
47
48
49
50
51
52
53
54
55
56
    target_link_libraries(FVDiscr ${PARMETIS_LIBRARIES})
  endif()
endif()

if(USE_MPI)
  message("linking FVDiscr with MPI")
  target_link_libraries(FVDiscr ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(FVDiscr PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)
Kirill Terekhov's avatar
Kirill Terekhov committed
57

Kirill Terekhov's avatar
Kirill Terekhov committed
58
install(TARGETS FVDiscr EXPORT inmost-targets RUNTIME DESTINATION bin)