@@ -37,67 +37,80 @@ if(enable_double)
37
37
set (DEXM pddrive.c dcreate_matrix.c)
38
38
add_executable (pddrive ${DEXM} )
39
39
target_link_libraries (pddrive ${all_link_libs} )
40
- install (TARGETS pddrive RUNTIME DESTINATION "${INSTALL_BIN_DIR} " )
40
+ install (TARGETS pddrive RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE " )
41
41
42
42
set (DEXM1 pddrive1.c dcreate_matrix.c)
43
43
add_executable (pddrive1 ${DEXM1} )
44
44
target_link_libraries (pddrive1 ${all_link_libs} )
45
45
add_superlu_dist_example(pddrive1 big.rua 2 2)
46
+ install (TARGETS pddrive1 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
46
47
47
48
set (DEXM2 pddrive2.c dcreate_matrix.c dcreate_matrix_perturbed.c)
48
49
add_executable (pddrive2 ${DEXM2} )
49
50
target_link_libraries (pddrive2 ${all_link_libs} )
50
51
add_superlu_dist_example(pddrive2 big.rua 2 2)
52
+ install (TARGETS pddrive2 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
51
53
52
54
set (DEXM3 pddrive3.c dcreate_matrix.c)
53
55
add_executable (pddrive3 ${DEXM3} )
54
56
target_link_libraries (pddrive3 ${all_link_libs} )
55
57
add_superlu_dist_example(pddrive3 big.rua 2 2)
58
+ install (TARGETS pddrive3 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
56
59
57
60
set (DEXM4 pddrive4.c dcreate_matrix.c)
58
61
add_executable (pddrive4 ${DEXM4} )
59
62
target_link_libraries (pddrive4 ${all_link_libs} )
63
+ install (TARGETS pddrive4 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
60
64
61
65
set (DEXM3D pddrive3d.c dcreate_matrix.c dcreate_matrix3d.c)
62
66
add_executable (pddrive3d ${DEXM3D} )
63
67
target_link_libraries (pddrive3d ${all_link_libs} )
68
+ install (TARGETS pddrive3d RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
64
69
65
70
set (DEXM3D1 pddrive3d1.c dcreate_matrix.c dcreate_matrix3d.c)
66
71
add_executable (pddrive3d1 ${DEXM3D1} )
67
72
target_link_libraries (pddrive3d1 ${all_link_libs} )
68
-
73
+ install (TARGETS pddrive3d1 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
74
+
69
75
set (DEXM3D2 pddrive3d2.c dcreate_matrix.c dcreate_matrix3d.c)
70
76
add_executable (pddrive3d2 ${DEXM3D2} )
71
77
target_link_libraries (pddrive3d2 ${all_link_libs} )
72
-
78
+ install (TARGETS pddrive3d2 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
79
+
73
80
set (DEXM3D3 pddrive3d3.c dcreate_matrix.c dcreate_matrix3d.c)
74
81
add_executable (pddrive3d3 ${DEXM3D3} )
75
82
target_link_libraries (pddrive3d3 ${all_link_libs} )
76
-
83
+ install (TARGETS pddrive3d3 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
84
+
77
85
set (DEXMG pddrive_ABglobal.c)
78
86
add_executable (pddrive_ABglobal ${DEXMG} )
79
87
target_link_libraries (pddrive_ABglobal ${all_link_libs} )
88
+ install (TARGETS pddrive_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
80
89
81
90
set (DEXMG1 pddrive1_ABglobal.c)
82
91
add_executable (pddrive1_ABglobal ${DEXMG1} )
83
92
target_link_libraries (pddrive1_ABglobal ${all_link_libs} )
93
+ install (TARGETS pddrive1_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
84
94
85
95
set (DEXMG2 pddrive2_ABglobal.c)
86
96
add_executable (pddrive2_ABglobal ${DEXMG2} )
87
97
target_link_libraries (pddrive2_ABglobal ${all_link_libs} )
98
+ install (TARGETS pddrive2_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
88
99
89
100
set (DEXMG3 pddrive3_ABglobal.c)
90
101
add_executable (pddrive3_ABglobal ${DEXMG3} )
91
102
target_link_libraries (pddrive3_ABglobal ${all_link_libs} )
103
+ install (TARGETS pddrive3_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
92
104
93
105
set (DEXMG4 pddrive4_ABglobal.c)
94
106
add_executable (pddrive4_ABglobal ${DEXMG4} )
95
107
target_link_libraries (pddrive4_ABglobal ${all_link_libs} )
108
+ install (TARGETS pddrive4_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
96
109
97
110
set (DEXMS pddrive_spawn.c dcreate_matrix.c)
98
111
add_executable (pddrive_spawn ${DEXMS} )
99
112
target_link_libraries (pddrive_spawn ${all_link_libs} )
100
- install (TARGETS pddrive_spawn RUNTIME DESTINATION "${INSTALL_BIN_DIR} " )
113
+ install (TARGETS pddrive_spawn RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
101
114
102
115
103
116
@@ -107,107 +120,131 @@ if(enable_single)
107
120
set (SEXM psdrive.c screate_matrix.c)
108
121
add_executable (psdrive ${SEXM} )
109
122
target_link_libraries (psdrive ${all_link_libs} )
123
+ install (TARGETS psdrive RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
110
124
111
125
set (SEXM1 psdrive1.c screate_matrix.c)
112
126
add_executable (psdrive1 ${SEXM1} )
113
127
target_link_libraries (psdrive1 ${all_link_libs} )
114
128
add_superlu_dist_example(psdrive1 big.rua 2 2)
129
+ install (TARGETS psdrive1 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
115
130
116
131
set (SEXM2 psdrive2.c screate_matrix.c screate_matrix_perturbed.c)
117
132
add_executable (psdrive2 ${SEXM2} )
118
133
target_link_libraries (psdrive2 ${all_link_libs} )
119
134
add_superlu_dist_example(psdrive2 big.rua 2 2)
135
+ install (TARGETS psdrive2 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
120
136
121
137
set (SEXM3 psdrive3.c screate_matrix.c)
122
138
add_executable (psdrive3 ${SEXM3} )
123
139
target_link_libraries (psdrive3 ${all_link_libs} )
124
140
add_superlu_dist_example(psdrive3 big.rua 2 2)
141
+ install (TARGETS psdrive3 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
125
142
126
143
set (SEXM4 psdrive4.c screate_matrix.c)
127
144
add_executable (psdrive4 ${SEXM4} )
128
145
target_link_libraries (psdrive4 ${all_link_libs} )
146
+ install (TARGETS psdrive4 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
129
147
130
148
set (SEXM3D psdrive3d.c screate_matrix.c screate_matrix3d.c)
131
149
add_executable (psdrive3d ${SEXM3D} )
132
150
target_link_libraries (psdrive3d ${all_link_libs} )
151
+ install (TARGETS psdrive3d RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
133
152
134
153
set (SEXM3D1 psdrive3d1.c screate_matrix.c screate_matrix3d.c)
135
154
add_executable (psdrive3d1 ${SEXM3D1} )
136
155
target_link_libraries (psdrive3d1 ${all_link_libs} )
137
-
156
+ install (TARGETS psdrive3d1 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
157
+
138
158
set (SEXM3D2 psdrive3d2.c screate_matrix.c screate_matrix3d.c)
139
159
add_executable (psdrive3d2 ${SEXM3D2} )
140
160
target_link_libraries (psdrive3d2 ${all_link_libs} )
141
-
161
+ install (TARGETS psdrive3d2 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
162
+
142
163
set (SEXM3D3 psdrive3d3.c screate_matrix.c screate_matrix3d.c)
143
164
add_executable (psdrive3d3 ${SEXM3D3} )
144
165
target_link_libraries (psdrive3d3 ${all_link_libs} )
145
-
166
+ install (TARGETS psdrive3d3 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
167
+
146
168
endif () #### end enable_single
147
169
148
170
if (enable_complex16)
149
171
150
172
set (ZEXM pzdrive.c zcreate_matrix.c)
151
173
add_executable (pzdrive ${ZEXM} )
152
174
target_link_libraries (pzdrive ${all_link_libs} )
175
+ install (TARGETS pzdrive RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
153
176
154
177
set (ZEXM1 pzdrive1.c zcreate_matrix.c)
155
178
add_executable (pzdrive1 ${ZEXM1} )
156
179
target_link_libraries (pzdrive1 ${all_link_libs} )
157
180
add_superlu_dist_example(pzdrive1 cg20.cua 2 2)
181
+ install (TARGETS pzdrive1 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
158
182
159
183
set (ZEXM2 pzdrive2.c zcreate_matrix.c zcreate_matrix_perturbed.c)
160
184
add_executable (pzdrive2 ${ZEXM2} )
161
185
target_link_libraries (pzdrive2 ${all_link_libs} )
162
186
add_superlu_dist_example(pzdrive2 cg20.cua 2 2)
187
+ install (TARGETS pzdrive2 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
163
188
164
189
set (ZEXM3 pzdrive3.c zcreate_matrix.c)
165
190
add_executable (pzdrive3 ${ZEXM3} )
166
191
target_link_libraries (pzdrive3 ${all_link_libs} )
167
192
add_superlu_dist_example(pzdrive3 cg20.cua 2 2)
193
+ install (TARGETS pzdrive3 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
168
194
169
195
set (ZEXM4 pzdrive4.c zcreate_matrix.c)
170
196
add_executable (pzdrive4 ${ZEXM4} )
171
197
target_link_libraries (pzdrive4 ${all_link_libs} )
198
+ install (TARGETS pzdrive4 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
172
199
173
200
set (ZEXM3D pzdrive3d.c zcreate_matrix.c zcreate_matrix3d.c)
174
201
add_executable (pzdrive3d ${ZEXM3D} )
175
202
target_link_libraries (pzdrive3d ${all_link_libs} )
203
+ install (TARGETS pzdrive3d RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
176
204
177
205
set (ZEXM3D1 pzdrive3d1.c zcreate_matrix.c zcreate_matrix3d.c)
178
206
add_executable (pzdrive3d1 ${ZEXM3D1} )
179
207
target_link_libraries (pzdrive3d1 ${all_link_libs} )
180
-
208
+ install (TARGETS pzdrive3d1 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
209
+
181
210
set (ZEXM3D2 pzdrive3d2.c zcreate_matrix.c zcreate_matrix3d.c)
182
211
add_executable (pzdrive3d2 ${ZEXM3D2} )
183
212
target_link_libraries (pzdrive3d2 ${all_link_libs} )
184
-
213
+ install (TARGETS pzdrive3d2 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
214
+
185
215
set (ZEXM3D3 pzdrive3d3.c zcreate_matrix.c zcreate_matrix3d.c)
186
216
add_executable (pzdrive3d3 ${ZEXM3D3} )
187
217
target_link_libraries (pzdrive3d3 ${all_link_libs} )
218
+ install (TARGETS pzdrive3d3 RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
188
219
189
220
set (ZEXMG pzdrive_ABglobal.c)
190
221
add_executable (pzdrive_ABglobal ${ZEXMG} )
191
222
target_link_libraries (pzdrive_ABglobal ${all_link_libs} )
223
+ install (TARGETS pzdrive_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
192
224
193
225
set (ZEXMG1 pzdrive1_ABglobal.c)
194
226
add_executable (pzdrive1_ABglobal ${ZEXMG1} )
195
227
target_link_libraries (pzdrive1_ABglobal ${all_link_libs} )
228
+ install (TARGETS pzdrive1_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
196
229
197
230
set (ZEXMG2 pzdrive2_ABglobal.c)
198
231
add_executable (pzdrive2_ABglobal ${ZEXMG2} )
199
232
target_link_libraries (pzdrive2_ABglobal ${all_link_libs} )
200
-
233
+ install (TARGETS pzdrive2_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
234
+
201
235
set (ZEXMG3 pzdrive3_ABglobal.c)
202
236
add_executable (pzdrive3_ABglobal ${ZEXMG3} )
203
237
target_link_libraries (pzdrive3_ABglobal ${all_link_libs} )
238
+ install (TARGETS pzdrive3_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
204
239
205
240
set (ZEXMG4 pzdrive4_ABglobal.c)
206
241
add_executable (pzdrive4_ABglobal ${ZEXMG4} )
207
242
target_link_libraries (pzdrive4_ABglobal ${all_link_libs} )
243
+ install (TARGETS pzdrive4_ABglobal RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
208
244
209
245
set (ZEXMS pzdrive_spawn.c zcreate_matrix.c)
210
246
add_executable (pzdrive_spawn ${ZEXMS} )
211
247
target_link_libraries (pzdrive_spawn ${all_link_libs} )
248
+ install (TARGETS pzdrive_spawn RUNTIME DESTINATION "${INSTALL_LIB_DIR} /EXAMPLE" )
212
249
213
250
endif ()
0 commit comments