Logo AND Algorithmique Numérique Distribuée

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