Logo AND Algorithmique Numérique Distribuée

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