CMakeLists.txt 2.22 KB
Newer Older
Kirill Terekhov's avatar
Kirill Terekhov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
project(GridGen)

add_executable(FixFaults fix_faults.cpp)
add_executable(FixTiny fix_tiny.cpp)
add_executable(UniteFaces unite_faces.cpp)
add_executable(Dual dual.cpp)
add_executable(Slice slice.cpp)
add_executable(SliceFunc slice_func.cpp)

target_link_libraries(FixFaults inmost)
if(USE_MPI)
  message("linking FixFaults with MPI")
  target_link_libraries(FixFaults ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(FixFaults PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)
install(TARGETS FixFaults EXPORT inmost-targets RUNTIME DESTINATION bin)

target_link_libraries(FixTiny inmost)
if(USE_MPI)
  message("linking FixTiny with MPI")
  target_link_libraries(FixTiny ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(FixTiny PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)
install(TARGETS FixTiny EXPORT inmost-targets RUNTIME DESTINATION bin)

target_link_libraries(UniteFaces inmost)
if(USE_MPI)
  message("linking UniteFaces with MPI")
  target_link_libraries(UniteFaces ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(UniteFaces PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)
install(TARGETS UniteFaces EXPORT inmost-targets RUNTIME DESTINATION bin)


target_link_libraries(Dual inmost)
if(USE_MPI)
  message("linking Dual with MPI")
  target_link_libraries(Dual ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(Dual PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)
install(TARGETS Dual EXPORT inmost-targets RUNTIME DESTINATION bin)


target_link_libraries(Slice inmost)
if(USE_MPI)
  message("linking Slice with MPI")
  target_link_libraries(Slice ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(Slice PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)
install(TARGETS Slice EXPORT inmost-targets RUNTIME DESTINATION bin)


target_link_libraries(SliceFunc inmost)
if(USE_MPI)
  message("linking SliceFunc with MPI")
  target_link_libraries(SliceFunc ${MPI_LIBRARIES}) 
  if(MPI_LINK_FLAGS)
    set_target_properties(SliceFunc PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
  endif() 
endif(USE_MPI)
install(TARGETS SliceFunc EXPORT inmost-targets RUNTIME DESTINATION bin)