Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add mpich's allgatherv ring algo, as the one from star-mpi performs terribly
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
1 ### define source packages
2
3 set(EXTRA_DIST
4   include/xbt/win32_ucontext.h
5   src/bindings/java/MANIFEST.MF
6   src/include/instr/instr_interface.h
7   src/include/mc/datatypes.h
8   src/include/mc/mc.h
9   src/include/simgrid/platf_interface.h
10   src/include/simgrid/sg_config.h
11   src/include/smpi/smpi_interface.h
12   src/include/surf/datatypes.h
13   src/include/surf/maxmin.h
14   src/include/surf/random_mgr.h
15   src/include/surf/surf.h
16   src/include/surf/surf_resource.h
17   src/include/surf/surf_resource_lmm.h
18   src/include/surf/surfxml_parse_values.h
19   src/include/surf/trace_mgr.h
20   src/include/xbt/wine_dbghelp.h
21   src/include/xbt/xbt_os_time.h
22   src/mk_supernovae.pl
23   src/msg/msg_mailbox.h
24   src/msg/msg_private.h
25   src/portable.h
26   src/simdag/dax.dtd
27   src/simdag/dax_dtd.c
28   src/simdag/dax_dtd.h
29   src/simdag/private.h
30   src/simix/smx_host_private.h
31   src/simix/smx_io_private.h
32   src/simix/smx_network_private.h
33   src/simix/smx_private.h
34   src/simix/smx_process_private.h
35   src/simix/smx_smurf_private.h
36   src/simix/smx_synchro_private.h
37   src/smpi/README
38   src/smpi/colls/COPYRIGHTS
39   src/smpi/colls/colls.h
40   src/smpi/colls/colls_private.h
41   src/smpi/colls/coll_tuned_topo.h
42   src/smpi/private.h
43   src/smpi/smpi_mpi_dt_private.h
44   src/surf/cpu_cas01_private.h
45   src/surf/cpu_ti_private.h
46   src/surf/gtnets/gtnets_interface.h
47   src/surf/gtnets/gtnets_simulator.h
48   src/surf/gtnets/gtnets_topology.h
49   src/surf/maxmin_private.h
50   src/surf/network_gtnets_private.h
51   src/surf/network_ns3_private.h
52   src/surf/network_private.h
53   src/surf/ns3/my-point-to-point-helper.h
54   src/surf/ns3/ns3_interface.h
55   src/surf/ns3/ns3_simulator.h
56   src/surf/ns3/red-queue.h
57   src/surf/platf_generator_private.h
58   src/surf/simgrid.dtd
59   src/surf/simgrid_dtd.c
60   src/surf/storage_private.h
61   src/surf/surf_private.h
62   src/surf/surf_routing_private.h
63   src/surf/surfxml_parse.c
64   src/surf/trace_mgr_private.h
65   src/win32/config.h
66   src/xbt/automaton/automaton_lexer.yy.c
67   src/xbt/automaton/parserPromela.lex
68   src/xbt/automaton/parserPromela.tab.cacc
69   src/xbt/automaton/parserPromela.tab.hacc
70   src/xbt/automaton/parserPromela.yacc
71   src/xbt/backtrace_dummy.c
72   src/xbt/backtrace_linux.c
73   src/xbt/backtrace_windows.c
74   src/xbt/dict_private.h
75   src/xbt/ex_interface.h
76   src/xbt/fifo_private.h
77   src/xbt/graph_private.h
78   src/xbt/graphxml.c
79   src/xbt/graphxml.dtd
80   src/xbt/graphxml_parse.c
81   src/xbt/heap_private.h
82   src/xbt/log_private.h
83   src/xbt/mallocator_private.h
84   src/xbt/mmalloc/mfree.c
85   src/xbt/mmalloc/mm.c
86   src/xbt/mmalloc/mm_diff.c
87   src/xbt/mmalloc/mm_legacy.c
88   src/xbt/mmalloc/mm_module.c
89   src/xbt/mmalloc/mmalloc.c
90   src/xbt/mmalloc/mmalloc.info
91   src/xbt/mmalloc/mmalloc.texi
92   src/xbt/mmalloc/mmorecore.c
93   src/xbt/mmalloc/mmprivate.h
94   src/xbt/mmalloc/mmtrace.awk
95   src/xbt/mmalloc/mrealloc.c
96   src/xbt/setset_private.h
97   src/xbt/win32_ucontext.c
98   tools/tesh/run_context.h
99   tools/tesh/tesh.h
100   )
101
102 set(SMPI_SRC
103   src/smpi/instr_smpi.c
104   src/smpi/smpi_base.c
105   src/smpi/smpi_bench.c
106   src/smpi/smpi_c99.c
107   src/smpi/smpi_coll.c
108   src/smpi/smpi_comm.c
109   src/smpi/smpi_global.c
110   src/smpi/smpi_group.c
111   src/smpi/smpi_mpi.c
112   src/smpi/smpi_mpi_dt.c
113   src/smpi/smpi_pmpi.c
114   src/smpi/smpi_replay.c
115   src/smpi/colls/smpi_openmpi_selector.c
116   src/smpi/colls/smpi_mpich_selector.c
117   src/smpi/colls/colls_global.c
118   src/smpi/colls/allgather-2dmesh.c
119   src/smpi/colls/allgather-3dmesh.c
120   src/smpi/colls/allgather-bruck.c
121   src/smpi/colls/allgather-GB.c
122   src/smpi/colls/allgather-loosely-lr.c
123   src/smpi/colls/allgather-lr.c
124   src/smpi/colls/allgather-NTSLR.c
125   src/smpi/colls/allgather-NTSLR-NB.c
126   src/smpi/colls/allgather-pair.c
127   src/smpi/colls/allgather-rdb.c
128   src/smpi/colls/allgather-rhv.c
129   src/smpi/colls/allgather-ring.c
130   src/smpi/colls/allgather-SMP-NTS.c
131   src/smpi/colls/allgather-smp-simple.c
132   src/smpi/colls/allgather-spreading-simple.c
133   src/smpi/colls/allgather-ompi-neighborexchange.c
134   src/smpi/colls/allgatherv-GB.c  
135   src/smpi/colls/allgatherv-pair.c
136   src/smpi/colls/allgatherv-ring.c
137   src/smpi/colls/allgatherv-ompi-neighborexchange.c
138   src/smpi/colls/allgatherv-ompi-bruck.c
139   src/smpi/colls/allgatherv-mpich-rdb.c
140   src/smpi/colls/allgatherv-mpich-ring.c
141   src/smpi/colls/allreduce-lr.c
142   src/smpi/colls/allreduce-NTS.c
143   src/smpi/colls/allreduce-rab1.c
144   src/smpi/colls/allreduce-rab2.c
145   src/smpi/colls/allreduce-rab-rdb.c
146   #src/smpi/colls/allreduce-rab-reduce-scatter.c
147   src/smpi/colls/allreduce-rab-rsag.c
148   src/smpi/colls/allreduce-rdb.c
149   src/smpi/colls/allreduce-redbcast.c
150   src/smpi/colls/allreduce-smp-binomial.c
151   src/smpi/colls/allreduce-smp-binomial-pipeline.c
152   src/smpi/colls/allreduce-smp-rdb.c
153   src/smpi/colls/allreduce-smp-rsag.c
154   src/smpi/colls/allreduce-smp-rsag-lr.c
155   src/smpi/colls/allreduce-smp-rsag-rab.c
156   src/smpi/colls/allreduce-ompi-ring-segmented.c
157   src/smpi/colls/alltoall-2dmesh.c
158   src/smpi/colls/alltoall-3dmesh.c
159   #src/smpi/colls/alltoall-bruck.c
160   src/smpi/colls/alltoall-pair.c
161   src/smpi/colls/alltoall-pair-light-barrier.c
162   src/smpi/colls/alltoall-pair-mpi-barrier.c
163   src/smpi/colls/alltoall-pair-one-barrier.c
164   src/smpi/colls/alltoall-rdb.c
165   src/smpi/colls/alltoall-ring.c
166   src/smpi/colls/alltoall-ring-light-barrier.c
167   src/smpi/colls/alltoall-ring-mpi-barrier.c
168   src/smpi/colls/alltoall-ring-one-barrier.c
169   src/smpi/colls/alltoall-simple.c
170   src/smpi/colls/alltoall-ompi-pairwise.c
171   src/smpi/colls/alltoallv-pair.c   
172   src/smpi/colls/alltoallv-pair-light-barrier.c
173   src/smpi/colls/alltoallv-pair-mpi-barrier.c
174   src/smpi/colls/alltoallv-pair-one-barrier.c 
175   src/smpi/colls/alltoallv-ring.c
176   src/smpi/colls/alltoallv-ring-light-barrier.c
177   src/smpi/colls/alltoallv-ring-mpi-barrier.c
178   src/smpi/colls/alltoallv-ring-one-barrier.c
179   src/smpi/colls/alltoallv-bruck.c
180   src/smpi/colls/alltoallv-ompi-basic-linear.c
181   src/smpi/colls/bcast-arrival-nb.c
182   src/smpi/colls/bcast-arrival-pattern-aware.c
183   src/smpi/colls/bcast-arrival-pattern-aware-wait.c
184   src/smpi/colls/bcast-arrival-scatter.c
185   src/smpi/colls/bcast-binomial-tree.c
186   src/smpi/colls/bcast-flattree.c
187   src/smpi/colls/bcast-flattree-pipeline.c
188   src/smpi/colls/bcast-NTSB.c
189   src/smpi/colls/bcast-NTSL.c
190   src/smpi/colls/bcast-NTSL-Isend.c
191   src/smpi/colls/bcast-scatter-LR-allgather.c
192   src/smpi/colls/bcast-scatter-rdb-allgather.c
193   src/smpi/colls/bcast-SMP-binary.c
194   src/smpi/colls/bcast-SMP-binomial.c
195   src/smpi/colls/bcast-SMP-linear.c
196   src/smpi/colls/coll_tuned_topo.c
197   src/smpi/colls/bcast-ompi-split-bintree.c
198   src/smpi/colls/bcast-ompi-pipeline.c
199   src/smpi/colls/reduce-arrival-pattern-aware.c
200   src/smpi/colls/reduce-binomial.c
201   src/smpi/colls/reduce-flat-tree.c
202   src/smpi/colls/reduce-NTSL.c
203   src/smpi/colls/reduce-scatter-gather.c
204   src/smpi/colls/reduce-ompi.c
205   src/smpi/colls/gather-ompi.c
206   src/smpi/colls/reduce_scatter-ompi.c
207   src/smpi/colls/reduce_scatter-mpich.c
208   src/smpi/colls/smpi_automatic_selector.c
209   src/smpi/colls/scatter-ompi.c
210   src/smpi/colls/barrier-ompi.c
211   )
212
213 if(SMPI_F2C)
214   set(SMPI_SRC
215     ${SMPI_SRC}
216     src/smpi/smpi_f77.c
217     )
218 else()
219   set(EXTRA_DIST
220     ${EXTRA_DIST}
221     src/smpi/smpi_f77.c
222   )
223 endif()
224
225
226 set(XBT_SRC
227   src/xbt/RngStream.c
228   src/xbt/automaton/automaton.c
229   src/xbt/automaton/automatonparse_promela.c
230   src/xbt/config.c
231   src/xbt/cunit.c
232   src/xbt/dict.c
233   src/xbt/dict_cursor.c
234   src/xbt/dict_elm.c
235   src/xbt/dict_multi.c
236   src/xbt/dynar.c
237   src/xbt/ex.c
238   src/xbt/fifo.c
239   src/xbt/graph.c
240   src/xbt/graphxml_parse.c
241   src/xbt/heap.c
242   src/xbt/lib.c
243   src/xbt/log.c
244   src/xbt/mallocator.c
245   src/xbt/parmap.c
246   src/xbt/set.c
247   src/xbt/setset.c
248   src/xbt/snprintf.c
249   src/xbt/swag.c
250   src/xbt/xbt_log_appender_file.c
251   src/xbt/xbt_log_layout_format.c
252   src/xbt/xbt_log_layout_simple.c
253   src/xbt/xbt_main.c
254   src/xbt/xbt_matrix.c
255   src/xbt/xbt_os_time.c
256   src/xbt/xbt_peer.c
257   src/xbt/xbt_queue.c
258   src/xbt/xbt_replay.c
259   src/xbt/xbt_sg_synchro.c
260   src/xbt/xbt_sha.c
261   src/xbt/xbt_str.c
262   src/xbt/xbt_strbuff.c
263   src/xbt/xbt_virtu.c
264   src/xbt_modinter.h
265   )
266
267 if(HAVE_MMAP)
268   set(XBT_SRC
269     ${XBT_SRC}
270     src/xbt/mmalloc/mm.c
271     )
272 endif()
273
274 set(GTNETS_SRC
275   src/surf/gtnets/gtnets_interface.cc
276   src/surf/gtnets/gtnets_simulator.cc
277   src/surf/gtnets/gtnets_topology.cc
278   src/surf/network_gtnets.c
279   )
280
281 set(NS3_SRC
282   src/surf/network_ns3.c
283   src/surf/ns3/my-point-to-point-helper.cc
284   src/surf/ns3/ns3_interface.cc
285   src/surf/ns3/ns3_simulator.cc
286   src/surf/ns3/red-queue.cc
287   )
288
289 set(SURF_SRC
290   src/surf/cpu_cas01.c
291   src/surf/cpu_ti.c
292   src/surf/fair_bottleneck.c
293   src/surf/instr_routing.c
294   src/surf/instr_surf.c
295   src/surf/lagrange.c
296   src/surf/maxmin.c
297   src/surf/network.c
298   src/surf/network_constant.c
299   src/surf/platf_generator.c
300   src/surf/random_mgr.c
301   src/surf/sg_platf.c
302   src/surf/storage.c
303   src/surf/surf.c
304   src/surf/surf_action.c
305   src/surf/surf_model.c
306   src/surf/surf_routing.c
307   src/surf/surf_routing_cluster.c
308   src/surf/surf_routing_dijkstra.c
309   src/surf/surf_routing_floyd.c
310   src/surf/surf_routing_full.c
311   src/surf/surf_routing_generic.c
312   src/surf/surf_routing_none.c
313   src/surf/surf_routing_vivaldi.c
314   src/surf/surfxml_parse.c
315   src/surf/surfxml_parseplatf.c
316   src/surf/trace_mgr.c
317   src/surf/workstation.c
318   src/surf/workstation_ptask_L07.c
319   src/xbt/xbt_sg_stubs.c
320   )
321
322 set(SIMIX_SRC
323   src/simix/smx_context.c
324   src/simix/smx_context_base.c
325   src/simix/smx_context_raw.c
326   src/simix/smx_deployment.c
327   src/simix/smx_environment.c
328   src/simix/smx_global.c
329   src/simix/smx_host.c
330   src/simix/smx_io.c
331   src/simix/smx_network.c
332   src/simix/smx_process.c
333   src/simix/smx_smurf.c
334   src/simix/smx_synchro.c
335   src/simix/smx_user.c
336   )
337
338 set(SIMGRID_SRC
339   src/simgrid/sg_config.c
340   )
341
342 set(MSG_SRC
343   src/msg/instr_msg_process.c
344   src/msg/instr_msg_task.c
345   src/msg/instr_msg_vm.c
346   src/msg/msg_actions.c
347   src/msg/msg_deployment.c
348   src/msg/msg_environment.c
349   src/msg/msg_global.c
350   src/msg/msg_gos.c
351   src/msg/msg_host.c
352   src/msg/msg_io.c
353   src/msg/msg_mailbox.c
354   src/msg/msg_process.c
355   src/msg/msg_synchro.c
356   src/msg/msg_task.c
357   src/msg/msg_vm.c
358   )
359
360 #* ****************************************************************************************** *#
361 #* TUTORIAL: New API                                                                          *#
362
363 set(MSG_SRC
364   ${MSG_SRC}
365   src/msg/msg_new_api.c
366   )
367 set(EXTRA_DIST
368   ${EXTRA_DIST}
369   src/simix/smx_new_api_private.h
370   )
371 set(SIMIX_SRC
372   ${SIMIX_SRC}
373   src/simix/smx_new_api.c
374 )
375 #* ****************************************************************************************** *#
376
377 #* ****************************************************************************************** *#
378 #* TUTORIAL: New Model                                                                        *#
379
380 set(SURF_SRC
381   ${SURF_SRC}
382   src/surf/new_model.c
383   )
384 set(EXTRA_DIST
385   ${EXTRA_DIST}
386   src/surf/new_model_private.h
387   )
388 #* ****************************************************************************************** *#
389
390 set(SIMDAG_SRC
391   src/simdag/instr_sd_task.c
392   src/simdag/sd_daxloader.c
393   src/simdag/sd_global.c
394   src/simdag/sd_link.c
395   src/simdag/sd_task.c
396   src/simdag/sd_workstation.c
397   )
398 if(HAVE_GRAPHVIZ)
399   set(SIMDAG_SRC
400     ${SIMDAG_SRC} src/simdag/sd_dotloader.c
401     )
402 else()
403   set(EXTRA_DIST
404     ${EXTRA_DIST} src/simdag/sd_dotloader.c
405     )
406 endif()
407
408 set(BINDINGS_SRC
409   src/bindings/bindings_global.c
410   src/bindings/lua/lua_private.h
411   src/bindings/lua/lua_state_cloner.h
412   src/bindings/lua/lua_utils.h
413   src/bindings/lua/simgrid_lua.h
414   )
415
416 set(JMSG_C_SRC
417   src/bindings/java/jmsg.c
418   src/bindings/java/jmsg.h
419   src/bindings/java/jmsg_as.c
420   src/bindings/java/jmsg_as.h
421   src/bindings/java/jmsg_comm.c
422   src/bindings/java/jmsg_comm.h
423   src/bindings/java/jmsg_file.c
424   src/bindings/java/jmsg_file.h
425   src/bindings/java/jmsg_host.c
426   src/bindings/java/jmsg_host.h
427   src/bindings/java/jmsg_process.c
428   src/bindings/java/jmsg_process.h
429   src/bindings/java/jmsg_rngstream.c
430   src/bindings/java/jmsg_rngstream.h
431   src/bindings/java/jmsg_synchro.c
432   src/bindings/java/jmsg_synchro.h
433   src/bindings/java/jmsg_task.c
434   src/bindings/java/jmsg_task.h
435   src/bindings/java/jmsg_vm.c
436   src/bindings/java/jmsg_vm.h
437   src/bindings/java/jxbt_utilities.c
438   src/bindings/java/jxbt_utilities.h
439   src/bindings/java/smx_context_cojava.c
440   src/bindings/java/smx_context_cojava.h
441   src/bindings/java/smx_context_java.c
442   src/bindings/java/smx_context_java.h
443 )
444
445 set(JMSG_JAVA_SRC
446   src/bindings/java/org/simgrid/msg/As.java     
447   src/bindings/java/org/simgrid/msg/Comm.java
448   src/bindings/java/org/simgrid/msg/File.java
449   src/bindings/java/org/simgrid/msg/Host.java
450   src/bindings/java/org/simgrid/msg/HostFailureException.java
451   src/bindings/java/org/simgrid/msg/HostNotFoundException.java
452   src/bindings/java/org/simgrid/msg/JniException.java
453   src/bindings/java/org/simgrid/msg/Msg.java
454   src/bindings/java/org/simgrid/msg/MsgException.java
455   src/bindings/java/org/simgrid/msg/Mutex.java
456   src/bindings/java/org/simgrid/msg/Semaphore.java
457   src/bindings/java/org/simgrid/msg/NativeException.java
458   src/bindings/java/org/simgrid/msg/Process.java
459   src/bindings/java/org/simgrid/msg/ProcessKilledError.java
460   src/bindings/java/org/simgrid/msg/ProcessNotFoundException.java
461   src/bindings/java/org/simgrid/msg/RngStream.java
462   src/bindings/java/org/simgrid/msg/Task.java
463   src/bindings/java/org/simgrid/msg/TaskCancelledException.java
464   src/bindings/java/org/simgrid/msg/TimeoutException.java
465   src/bindings/java/org/simgrid/msg/TransferFailureException.java
466   src/bindings/java/org/simgrid/msg/VM.java
467 )
468
469 set(JTRACE_C_SRC
470   src/bindings/java/jtrace.c
471   src/bindings/java/jtrace.h
472 )
473
474 set(JTRACE_JAVA_SRC
475   src/bindings/java/org/simgrid/trace/Trace.java
476 )
477
478 if(HAVE_TRACING)
479   list(APPEND JMSG_C_SRC ${JTRACE_C_SRC})
480   list(APPEND JMSG_JAVA_SRC ${JTRACE_JAVA_SRC})
481 else()
482   list(APPEND EXTRA_DIST ${JTRACE_C_SRC})
483   list(APPEND EXTRA_DIST ${JTRACE_JAVA_SRC})
484 endif()
485
486 set(LUA_SRC
487   src/bindings/lua/lua_comm.c
488   src/bindings/lua/lua_host.c
489   src/bindings/lua/lua_platf.c
490   src/bindings/lua/lua_process.c
491   src/bindings/lua/lua_state_cloner.c
492   src/bindings/lua/lua_task.c
493   src/bindings/lua/lua_utils.c
494   src/bindings/lua/simgrid_lua.c
495   )
496
497 set(TRACING_SRC
498   src/instr/instr_config.c
499   src/instr/instr_interface.c
500   src/instr/instr_paje_containers.c
501   src/instr/instr_paje_trace.c
502   src/instr/instr_paje_header.c
503   src/instr/instr_paje_types.c
504   src/instr/instr_paje_values.c
505   src/instr/instr_private.h
506   src/instr/instr_resource_utilization.c
507   )
508
509 set(JEDULE_SRC
510   include/instr/jedule/jedule_events.h
511   include/instr/jedule/jedule_output.h
512   include/instr/jedule/jedule_platform.h
513   include/instr/jedule/jedule_sd_binding.h
514   src/instr/jedule/jedule_events.c
515   src/instr/jedule/jedule_output.c
516   src/instr/jedule/jedule_platform.c
517   src/instr/jedule/jedule_sd_binding.c
518   )
519
520 set(MC_SRC
521   src/mc/mc_checkpoint.c
522   src/mc/mc_compare.c
523   src/mc/mc_dpor.c
524   src/mc/mc_global.c
525   src/mc/mc_liveness.c
526   src/mc/mc_memory.c
527   src/mc/mc_private.h
528   src/mc/mc_request.c
529   src/mc/mc_state.c
530   src/mc/memory_map.c
531   src/mc/mc_pair.c
532   )
533
534 set(headers_to_install
535   include/instr/instr.h
536   include/msg/datatypes.h
537   include/msg/msg.h
538   include/simdag/datatypes.h
539   include/simdag/simdag.h
540   include/simgrid/modelchecker.h
541   include/simgrid/platf.h
542   include/simgrid/platf_generator.h
543   include/simgrid/simix.h
544   include/smpi/mpi.h
545   include/smpi/mpif.h
546   include/smpi/smpi.h
547   include/smpi/smpi_cocci.h
548   include/smpi/smpi_main.h
549   include/surf/simgrid_dtd.h
550   include/surf/surf_routing.h
551   include/surf/surfxml_parse.h
552   include/xbt.h
553   include/xbt/RngStream.h
554   include/xbt/asserts.h
555   include/xbt/automaton.h
556   include/xbt/config.h
557   include/xbt/cunit.h
558   include/xbt/dict.h
559   include/xbt/dynar.h
560   include/xbt/ex.h
561   include/xbt/fifo.h
562   include/xbt/function_types.h
563   include/xbt/graph.h
564   include/xbt/graphxml.h
565   include/xbt/graphxml_parse.h
566   include/xbt/hash.h
567   include/xbt/heap.h
568   include/xbt/lib.h
569   include/xbt/log.h
570   include/xbt/mallocator.h
571   include/xbt/matrix.h
572   include/xbt/misc.h
573   include/xbt/mmalloc.h
574   include/xbt/module.h
575   include/xbt/parmap.h
576   include/xbt/peer.h
577   include/xbt/queue.h
578   include/xbt/replay.h
579   include/xbt/set.h
580   include/xbt/setset.h
581   include/xbt/str.h
582   include/xbt/strbuff.h
583   include/xbt/swag.h
584   include/xbt/synchro_core.h
585   include/xbt/sysdep.h
586   include/xbt/virtu.h
587   include/xbt/xbt_os_thread.h
588   )
589 set(source_of_generated_headers
590   include/simgrid_config.h.in
591   include/smpi/smpif.h.in
592   src/context_sysv_config.h.in)
593
594 ### depend of some variables setted upper
595 # -->CONTEXT_THREADS CONTEXT_UCONTEXT
596 if(${CONTEXT_THREADS}) #pthread
597   set(SURF_SRC
598     ${SURF_SRC}
599     src/simix/smx_context_thread.c
600     src/xbt/xbt_os_thread.c
601     )
602 else() # NOT pthread
603   set(EXTRA_DIST
604     ${EXTRA_DIST}
605     src/simix/smx_context_thread.c
606     src/xbt/xbt_os_thread.c
607     )
608 endif()
609
610 if(${CONTEXT_UCONTEXT}) #ucontext
611   set(SURF_SRC
612     ${SURF_SRC}
613     src/simix/smx_context_sysv.c
614     )
615 else() # NOT ucontext
616   set(EXTRA_DIST
617     ${EXTRA_DIST}
618     src/simix/smx_context_sysv.c
619     )
620 endif()
621
622 # -->HAVE_GTNETS
623 if(HAVE_GTNETS)
624   set(GTNETS_USED
625     ${GTNETS_SRC}
626     )
627 else()
628   set(GTNETS_USED "")
629   set(EXTRA_DIST
630     ${EXTRA_DIST}
631     ${GTNETS_SRC}
632     )
633 endif()
634
635 ### Simgrid Lib sources
636 set(simgrid_sources
637   ${BINDINGS_SRC}
638   ${GTNETS_USED}
639   ${MSG_SRC}
640   ${SIMDAG_SRC}
641   ${SIMGRID_SRC}
642   ${SIMIX_SRC}
643   ${SURF_SRC}
644   ${XBT_SRC}
645   )
646
647 if(${HAVE_JEDULE})
648   set(simgrid_sources
649     ${simgrid_sources}
650     ${JEDULE_SRC}
651     )
652 else()
653   set(EXTRA_DIST
654     ${EXTRA_DIST}
655     ${JEDULE_SRC}
656     )
657 endif()
658
659 if(enable_smpi)
660   set(simgrid_sources
661     ${simgrid_sources}
662     ${SMPI_SRC}
663     )
664 endif()
665
666 if(${HAVE_TRACING})
667   set(simgrid_sources
668     ${simgrid_sources}
669     ${TRACING_SRC}
670     )
671 else()
672   set(EXTRA_DIST
673     ${EXTRA_DIST}
674     ${TRACING_SRC}
675     )
676 endif()
677
678 if(HAVE_MC)
679   set(simgrid_sources
680     ${simgrid_sources}
681     ${MC_SRC}
682     )
683 endif()
684
685 if(HAVE_NS3)
686   set(simgrid_sources
687     ${simgrid_sources}
688     ${NS3_SRC}
689     )
690 endif()
691
692 # WINDOWS
693 if(WIN32)
694   set(simgrid_sources
695     ${simgrid_sources}
696     src/simix/smx_context_thread.c
697     src/xbt/win32_ucontext.c
698     src/xbt/xbt_os_thread.c
699     )
700 endif()
701
702 if(${HAVE_LUA})
703   set(simgrid_sources
704     ${simgrid_sources}
705     ${LUA_SRC}
706     )
707 else()
708   set(EXTRA_DIST
709     ${EXTRA_DIST}
710     ${LUA_SRC}
711     )
712 endif()
713
714 set(DOC_SOURCES
715   doc/AS_hierarchy.png
716   doc/Doxyfile.in
717   doc/Layout.xml
718   doc/sg_thread_model.fig
719   doc/simix.fig
720   doc/surf_nutshell.fig
721   doc/triva-graph_configuration.png
722   doc/triva-graph_configuration.svg
723   doc/triva-graph_visualization.png
724   doc/triva-graph_visualization.svg
725   doc/triva-time_interval.png
726   doc/triva-time_interval.svg
727
728   doc/HelloWorld/CMakeLists.txt
729   doc/HelloWorld/HelloWorld.c
730   doc/HelloWorld/README
731
732   doc/doxygen/FAQ.doc
733   doc/doxygen/advanced.doc
734   doc/doxygen/bindings.doc
735   doc/doxygen/contributing.doc
736   doc/doxygen/deployment.doc
737   doc/doxygen/footer.html
738   doc/doxygen/getting_started.doc
739   doc/doxygen/header.html
740   doc/doxygen/help.doc
741   doc/doxygen/index.doc
742   doc/doxygen/inside_autotests.doc
743   doc/doxygen/inside_cmake.doc
744   doc/doxygen/inside_doxygen.doc
745   doc/doxygen/inside_extending.doc
746   doc/doxygen/inside_release.doc
747   doc/doxygen/install.doc
748   doc/doxygen/internals.doc
749   doc/doxygen/introduction.doc
750   doc/doxygen/module-msg.doc
751   doc/doxygen/module-sd.doc
752   doc/doxygen/module-simix.doc
753   doc/doxygen/module-surf.doc
754   doc/doxygen/module-smpi.doc
755   doc/doxygen/module-trace.doc
756   doc/doxygen/module-xbt.doc
757   doc/doxygen/modules.doc
758   doc/doxygen/options.doc
759   doc/doxygen/platform.doc
760   doc/doxygen/pls.doc
761   doc/doxygen/stylesheet.css
762   doc/doxygen/tracing.doc
763   doc/doxygen/use.doc
764
765   doc/msg-tuto-src/deployment0.xml
766   doc/msg-tuto-src/deployment1.xml
767   doc/msg-tuto-src/deployment2.xml
768   doc/msg-tuto-src/deployment3.xml
769   doc/msg-tuto-src/deployment_general.xml
770   doc/msg-tuto-src/masterworker0.c
771   doc/msg-tuto-src/masterworker1.c
772   doc/msg-tuto-src/masterworker2.c
773   doc/msg-tuto-src/masterworker3.c
774   doc/msg-tuto-src/masterworker4.c
775   doc/msg-tuto-src/platforms/cloud.xml
776   doc/msg-tuto-src/platforms/g5k.xml
777   doc/msg-tuto-src/platforms/griffon.xml
778   doc/msg-tuto-src/platforms/peers.xml
779   doc/msg-tuto-src/platforms/platform.xml
780   )
781
782 set(DOC_FIGS
783   ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules.fig
784   ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules2.fig
785   )
786
787 set(DOC_TOOLS
788   tools/doxygen/fig2dev_postprocessor.pl
789   tools/doxygen/index_create.pl
790   tools/doxygen/xbt_log_extract_hierarchy.pl
791   )
792
793 # these files get copied automatically to the html documentation
794 set(DOC_IMG
795   ${CMAKE_HOME_DIRECTORY}/doc/simgrid.css
796   ${CMAKE_HOME_DIRECTORY}/doc/sc3-description.png
797   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot.jpg
798   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot_thn.jpg
799   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.gif
800   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.icns
801   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.ico
802   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/awstats_logo3.png
803   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/output.goal.pdf
804   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/poster_thumbnail.png
805   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.gif
806   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.png
807   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011_small.png
808   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_win.bmp
809   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_win_2011.bmp
810   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_01.png
811   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_02.png
812   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_03.png
813   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_04.png
814   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_05.png
815   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_06.png
816   )
817
818 set(bin_files
819   ${bin_files}
820   src/smpi/smpicc.in
821   src/smpi/smpif2c.in
822   src/smpi/smpiff.in
823   src/smpi/smpif90.in
824   src/smpi/smpirun.in
825   )
826
827 set(txt_files
828   ${txt_files}
829   AUTHORS
830   COPYING
831   README
832   README.java
833   ChangeLog
834   ChangeLog.SimGrid-java
835   INSTALL
836   LICENSE-LGPL-2.1
837   NEWS
838   TODO
839   configure
840   )
841
842 set(EXAMPLES_CMAKEFILES_TXT
843   examples/java/CMakeLists.txt
844   examples/java/async/CMakeLists.txt
845   examples/java/bittorrent/CMakeLists.txt
846   examples/java/chord/CMakeLists.txt
847   examples/java/cloud/CMakeLists.txt
848   examples/java/commTime/CMakeLists.txt
849   examples/java/io/CMakeLists.txt
850   examples/java/kademlia/CMakeLists.txt
851   examples/java/master_slave_bypass/CMakeLists.txt
852   examples/java/master_slave_kill/CMakeLists.txt
853   examples/java/masterslave/CMakeLists.txt
854   examples/java/migration/CMakeLists.txt
855   examples/java/mutualExclusion/CMakeLists.txt
856   examples/java/pingPong/CMakeLists.txt
857   examples/java/priority/CMakeLists.txt
858   examples/java/startKillTime/CMakeLists.txt
859   examples/java/suspend/CMakeLists.txt
860   examples/java/tracing/CMakeLists.txt
861   examples/lua/CMakeLists.txt
862   examples/msg/CMakeLists.txt
863   examples/msg/actions/CMakeLists.txt
864   examples/msg/bittorrent/CMakeLists.txt
865   examples/msg/chainsend/CMakeLists.txt
866   examples/msg/chord/CMakeLists.txt
867   examples/msg/cloud/CMakeLists.txt
868   examples/msg/energy/e1/CMakeLists.txt
869   examples/msg/energy/e2/CMakeLists.txt
870   examples/msg/energy/e3/CMakeLists.txt
871   examples/msg/gpu/CMakeLists.txt
872   examples/msg/gtnets/CMakeLists.txt
873   examples/msg/icomms/CMakeLists.txt
874   examples/msg/io/CMakeLists.txt
875   examples/msg/kademlia/CMakeLists.txt
876   examples/msg/masterslave/CMakeLists.txt
877   examples/msg/mc/CMakeLists.txt
878   examples/msg/migration/CMakeLists.txt
879   examples/msg/ns3/CMakeLists.txt
880   examples/msg/parallel_task/CMakeLists.txt
881   examples/msg/pastry/CMakeLists.txt
882   examples/msg/pmm/CMakeLists.txt
883   examples/msg/priority/CMakeLists.txt
884   examples/msg/properties/CMakeLists.txt
885   examples/msg/semaphores/CMakeLists.txt
886   examples/msg/sendrecv/CMakeLists.txt
887   examples/msg/start_kill_time/CMakeLists.txt
888   examples/msg/suspend/CMakeLists.txt
889   examples/msg/token_ring/CMakeLists.txt
890   examples/msg/tracing/CMakeLists.txt
891   examples/scala/CMakeLists.txt
892   examples/scala/master_slave_bypass/CMakeLists.txt
893   examples/scala/master_slave_kill/CMakeLists.txt
894   examples/scala/masterslave/CMakeLists.txt
895   examples/simdag/CMakeLists.txt
896   examples/simdag/dax/CMakeLists.txt
897   examples/simdag/dot/CMakeLists.txt
898   examples/simdag/goal/CMakeLists.txt
899   examples/simdag/io/CMakeLists.txt
900   examples/simdag/metaxml/CMakeLists.txt
901   examples/simdag/properties/CMakeLists.txt
902   examples/simdag/scheduling/CMakeLists.txt
903   examples/smpi/CMakeLists.txt
904   examples/smpi/MM/CMakeLists.txt
905   examples/xbt/CMakeLists.txt
906   )
907
908 set(TESHSUITE_CMAKEFILES_TXT
909   teshsuite/CMakeLists.txt
910   teshsuite/msg/CMakeLists.txt
911   teshsuite/msg/trace/CMakeLists.txt
912   teshsuite/simdag/CMakeLists.txt
913   teshsuite/simdag/availability/CMakeLists.txt
914   teshsuite/simdag/network/CMakeLists.txt
915   teshsuite/simdag/network/mxn/CMakeLists.txt
916   teshsuite/simdag/network/p2p/CMakeLists.txt
917   teshsuite/simdag/partask/CMakeLists.txt
918   teshsuite/simdag/platforms/CMakeLists.txt
919   teshsuite/smpi/CMakeLists.txt
920   teshsuite/smpi/mpich3-test/CMakeLists.txt
921   teshsuite/smpi/mpich3-test/attr/CMakeLists.txt
922   teshsuite/smpi/mpich3-test/comm/CMakeLists.txt
923   teshsuite/smpi/mpich3-test/coll/CMakeLists.txt
924   teshsuite/smpi/mpich3-test/datatype/CMakeLists.txt
925   teshsuite/smpi/mpich3-test/group/CMakeLists.txt
926   teshsuite/smpi/mpich3-test/init/CMakeLists.txt
927   teshsuite/smpi/mpich3-test/pt2pt/CMakeLists.txt
928   teshsuite/xbt/CMakeLists.txt
929   )
930
931 if(SMPI_F2C)
932   set(TESHSUITE_CMAKEFILES_TXT
933     ${TESHSUITE_CMAKEFILES_TXT}
934     teshsuite/smpi/mpich3-test/f77/comm/CMakeLists.txt
935     teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt
936     teshsuite/smpi/mpich3-test/f77/pt2pt/CMakeLists.txt
937     teshsuite/smpi/mpich3-test/f77/datatype/CMakeLists.txt
938     teshsuite/smpi/mpich3-test/f77/ext/CMakeLists.txt
939     teshsuite/smpi/mpich3-test/f77/init/CMakeLists.txt
940     teshsuite/smpi/mpich3-test/f90/coll/CMakeLists.txt
941     teshsuite/smpi/mpich3-test/f90/pt2pt/CMakeLists.txt
942     teshsuite/smpi/mpich3-test/f90/datatype/CMakeLists.txt
943     teshsuite/smpi/mpich3-test/f90/init/CMakeLists.txt
944   )
945 endif()
946
947 set(TOOLS_CMAKEFILES_TXT
948   tools/CMakeLists.txt
949   tools/graphicator/CMakeLists.txt
950   tools/tesh/CMakeLists.txt
951   )
952
953 set(TESTSUITE_CMAKEFILES_TXT
954   testsuite/surf/CMakeLists.txt
955   testsuite/xbt/CMakeLists.txt
956   )
957
958 set(CMAKE_SOURCE_FILES
959   CMakeLists.txt
960   buildtools/Cmake/AddTests.cmake
961   buildtools/Cmake/CTestConfig.cmake
962   buildtools/Cmake/CTestCustom.cmake
963   buildtools/Cmake/CompleteInFiles.cmake
964   buildtools/Cmake/DefinePackages.cmake
965   buildtools/Cmake/Distrib.cmake
966   buildtools/Cmake/Flags.cmake
967   buildtools/Cmake/GenerateDoc.cmake
968   buildtools/Cmake/GenerateDocWin.cmake
969   buildtools/Cmake/MaintainerMode.cmake
970   buildtools/Cmake/MakeExe.cmake
971   buildtools/Cmake/MakeJava.cmake
972   buildtools/Cmake/MakeLib.cmake
973   buildtools/Cmake/MakeLibWin.cmake
974   buildtools/Cmake/Modules/FindF2c.cmake
975   buildtools/Cmake/Modules/FindGTnets.cmake
976   buildtools/Cmake/Modules/FindGraphviz.cmake
977   buildtools/Cmake/Modules/FindLibunwind.cmake
978   buildtools/Cmake/Modules/FindLua51Simgrid.cmake
979   buildtools/Cmake/Modules/FindNS3.cmake
980   buildtools/Cmake/Modules/FindRngStream.cmake
981   buildtools/Cmake/Modules/FindRubySimgrid.cmake
982   buildtools/Cmake/Modules/FindScala.cmake
983   buildtools/Cmake/Modules/FindSimGrid.cmake
984   buildtools/Cmake/Modules/FindValgrind.cmake
985   buildtools/Cmake/Option.cmake
986   buildtools/Cmake/Pipol.cmake
987   buildtools/Cmake/PrintArgs.cmake
988   buildtools/Cmake/Scripts/Diff.pm
989   buildtools/Cmake/Scripts/Makefile.default
990   buildtools/Cmake/Scripts/SimGrid.packproj
991   buildtools/Cmake/Scripts/generate_memcheck_tests.pl
992   buildtools/Cmake/Scripts/generate_new_tests.pl
993   buildtools/Cmake/Scripts/my_valgrind.pl
994   buildtools/Cmake/Scripts/postinstall.sh
995   buildtools/Cmake/Scripts/preinstall.sh
996   buildtools/Cmake/Scripts/tesh.pl
997   buildtools/Cmake/Scripts/update_tesh.pl
998   buildtools/Cmake/Supernovae.cmake
999   buildtools/Cmake/UnitTesting.cmake
1000   buildtools/Cmake/src/internal_config.h.in
1001   buildtools/Cmake/src/simgrid.nsi.in
1002   buildtools/Cmake/test_prog/prog_AC_CHECK_MCSC.c
1003   buildtools/Cmake/test_prog/prog_gnu_dynlinker.c
1004   buildtools/Cmake/test_prog/prog_gtnets.cpp
1005   buildtools/Cmake/test_prog/prog_mutex_timedlock.c
1006   buildtools/Cmake/test_prog/prog_printf_null.c
1007   buildtools/Cmake/test_prog/prog_sem_init.c
1008   buildtools/Cmake/test_prog/prog_sem_open.c
1009   buildtools/Cmake/test_prog/prog_sem_timedwait.c
1010   buildtools/Cmake/test_prog/prog_snprintf.c
1011   buildtools/Cmake/test_prog/prog_stackgrowth.c
1012   buildtools/Cmake/test_prog/prog_stacksetup.c
1013   buildtools/Cmake/test_prog/prog_thread_storage.c
1014   buildtools/Cmake/test_prog/prog_vsnprintf.c
1015   )
1016
1017 set(PLATFORMS_EXAMPLES
1018   examples/platforms/bypassASroute.xml
1019   examples/platforms/bypassRoute.xml
1020   examples/platforms/cloud.xml
1021   examples/platforms/cluster.xml
1022   examples/platforms/cluster_and_one_host.xml
1023   examples/platforms/cluster_no_backbone.xml
1024   examples/platforms/clusters_routing_full.xml
1025   examples/platforms/conf/gridpp_grid_2004.conf
1026   examples/platforms/conf/gridpp_grid_2004.xml
1027   examples/platforms/conf/lcg_sept2004_grid.conf
1028   examples/platforms/conf/lcg_sept2004_grid.xml
1029   examples/platforms/conf/transform_optorsim_platform.pl
1030   examples/platforms/config.xml
1031   examples/platforms/content/storage_content.txt
1032   examples/platforms/content/win_storage_content.txt
1033   examples/platforms/data_center.xml
1034   examples/platforms/g5k.xml
1035   examples/platforms/generation_scripts/create_hierarchical_clusters.pl
1036   examples/platforms/generation_scripts/enhancedDTDwithHierarchicalCluster.pl
1037   examples/platforms/generation_scripts/generate_g5k_platform.pl
1038   examples/platforms/generation_scripts/generate_g5k_platform_cabinets.pl
1039   examples/platforms/griffon.xml
1040   examples/platforms/meta_cluster.xml
1041   examples/platforms/multicore_machine.xml
1042   examples/platforms/prop.xml
1043   examples/platforms/routing_cluster.xml
1044   examples/platforms/storage.xml
1045   examples/platforms/syscoord/generate_peer_platform.pl
1046   examples/platforms/syscoord/median_harvard.syscoord
1047   examples/platforms/syscoord/median_harvard.xml
1048   examples/platforms/syscoord/median_meridian.syscoord
1049   examples/platforms/syscoord/median_meridian.xml
1050   examples/platforms/syscoord/median_p2psim.syscoord
1051   examples/platforms/syscoord/median_p2psim.xml
1052   examples/platforms/two_peers.xml
1053   examples/platforms/vivaldi.xml
1054   )
1055
1056 set(generated_src_files
1057   src/xbt/automaton/automaton_lexer.yy.c
1058   src/xbt/automaton/parserPromela.tab.cacc
1059   src/xbt/automaton/parserPromela.tab.hacc
1060   )
1061
1062 foreach(file ${generated_src_files})
1063   set_source_files_properties(${file} PROPERTIES GENERATED true)
1064 endforeach(file ${generated_src_files})