Debian Codegraph @

cmake/modules/scotch/CMakeLists.txt

raw
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
2
3 PROJECT(scotch C)
4
5 FILE(GLOB CFILES ${CMAKE_SOURCE_DIR}/src/libscotch/*.c)
6 LIST(REMOVE_ITEM CFILES ${CMAKE_SOURCE_DIR}/src/libscotch/bgraph_bipart_df_loop.c
7 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph.c
8 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_bd.c
9 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_df.c
10 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_df_loop.c
11 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_ex.c
12 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_ml.c
13 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_sq.c
14 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_st.c
15 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_bipart_zr.c
16 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_check.c
17 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_gather_all.c
18 ${CMAKE_SOURCE_DIR}/src/libscotch/bdgraph_store.c
19 ${CMAKE_SOURCE_DIR}/src/libscotch/comm.c
20 ${CMAKE_SOURCE_DIR}/src/libscotch/common_sort.c
21 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph.c
22 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_allreduce.c
23 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_band.c
24 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_band_grow.c
25 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_build.c
26 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_build_grid3d.c
27 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_build_hcub.c
28 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_check.c
29 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_coarsen.c
30 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_fold.c
31 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_fold_comm.c
32 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_fold_dup.c
33 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_gather.c
34 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_gather_all.c
35 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_ghst.c
36 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_halo.c
37 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_halo_fill.c
38 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_io_load.c
39 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_io_save.c
40 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_induce.c
41 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_match.c
42 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_match_check.c
43 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_match_scan.c
44 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_match_sync_coll.c
45 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_match_sync_ptop.c
46 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_redist.c
47 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_scatter.c
48 ${CMAKE_SOURCE_DIR}/src/libscotch/dgraph_view.c
49 ${CMAKE_SOURCE_DIR}/src/libscotch/dmapping.c
50 ${CMAKE_SOURCE_DIR}/src/libscotch/dmapping_io.c
51 ${CMAKE_SOURCE_DIR}/src/libscotch/dorder.c
52 ${CMAKE_SOURCE_DIR}/src/libscotch/dorder_gather.c
53 ${CMAKE_SOURCE_DIR}/src/libscotch/dorder_io.c
54 ${CMAKE_SOURCE_DIR}/src/libscotch/dorder_io_block.c
55 ${CMAKE_SOURCE_DIR}/src/libscotch/dorder_io_tree.c
56 ${CMAKE_SOURCE_DIR}/src/libscotch/dorder_perm.c
57 ${CMAKE_SOURCE_DIR}/src/libscotch/dorder_tree_dist.c
58 ${CMAKE_SOURCE_DIR}/src/libscotch/graph_coarsen.c
59 ${CMAKE_SOURCE_DIR}/src/libscotch/graph_coarsen_edge.c
60 ${CMAKE_SOURCE_DIR}/src/libscotch/graph_match_scan.c
61 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph.c
62 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_check.c
63 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_fold.c
64 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_gather.c
65 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_order_io.c
66 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_order_nd.c
67 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_order_si.c
68 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_order_sq.c
69 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_order_st.c
70 ${CMAKE_SOURCE_DIR}/src/libscotch/hdgraph_induce.c
71 ${CMAKE_SOURCE_DIR}/src/libscotch/hgraph_induce.c
72 ${CMAKE_SOURCE_DIR}/src/libscotch/hgraph_induce_edge.c
73 ${CMAKE_SOURCE_DIR}/src/libscotch/kgraph_map_df_loop.c
74 ${CMAKE_SOURCE_DIR}/src/libscotch/kdgraph.c
75 ${CMAKE_SOURCE_DIR}/src/libscotch/kdgraph_gather.c
76 ${CMAKE_SOURCE_DIR}/src/libscotch/kdgraph_map_rb.c
77 ${CMAKE_SOURCE_DIR}/src/libscotch/kdgraph_map_rb_map.c
78 ${CMAKE_SOURCE_DIR}/src/libscotch/kdgraph_map_rb_part.c
79 ${CMAKE_SOURCE_DIR}/src/libscotch/kdgraph_map_st.c
80 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph.c
81 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_f.c
82 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_band.c
83 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_band_f.c
84 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_band_grow.c
85 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_build.c
86 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_build_f.c
87 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_build_grid3d.c
88 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_build_grid3d_f.c
89 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_check.c
90 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_check_f.c
91 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_coarsen.c
92 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_coarsen_f.c
93 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_gather.c
94 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_gather_f.c
95 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_grow.c
96 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_halo.c
97 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_halo_f.c
98 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_induce.c
99 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_induce_f.c
100 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_io_load.c
101 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_io_load_f.c
102 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_io_save.c
103 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_io_save_f.c
104 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_io_stat_f.c
105 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_io_map_f.c
106 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_map.c
107 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_map_f.c
108 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_map_view.c
109 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_map_view_f.c
110 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_stat_f.c
111 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order.c
112 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_f.c
113 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_gather.c
114 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_gather_f.c
115 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_io.c
116 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_io_block.c
117 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_io_block_f.c
118 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_io_f.c
119 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_perm.c
120 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_perm_f.c
121 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_tree_dist.c
122 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_order_tree_dist_f.c
123 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_redist.c
124 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_redist_f.c
125 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_scatter.c
126 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_scatter_f.c
127 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dgraph_stat.c
128 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dmapping.c
129 ${CMAKE_SOURCE_DIR}/src/libscotch/library_dorder.c
130 ${CMAKE_SOURCE_DIR}/src/libscotch/library_error.c
131 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph.c
132 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_check.c
133 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_gather_all.c
134 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_separate_bd.c
135 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_separate_df.c
136 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_separate_ml.c
137 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_separate_sq.c
138 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_separate_st.c
139 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_separate_zr.c
140 ${CMAKE_SOURCE_DIR}/src/libscotch/vdgraph_store.c)
141
142 ADD_LIBRARY(scotch ${CFILES})
143 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/libscotch)
144
145 ADD_LIBRARY(scotcherr ${CMAKE_SOURCE_DIR}/src/libscotch/library_error.c)