Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : hash of regions in snapshot for reached pairs and double dfs algorith...
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
1 ### define source packages
2
3 set(EXTRA_DIST 
4         src/portable.h
5         src/xbt/mallocator_private.h
6         src/xbt/dict_private.h
7         src/xbt/heap_private.h
8         src/xbt/fifo_private.h
9         src/xbt/graph_private.h
10         src/xbt/graphxml_parse.c
11         src/xbt/graphxml.c
12         src/xbt/graphxml.dtd
13         src/xbt/log_private.h
14         src/xbt/ex_interface.h
15         src/xbt/backtrace_linux.c
16         src/xbt/backtrace_windows.c
17         src/xbt/backtrace_dummy.c
18         src/xbt/setset_private.h
19         src/xbt/parmap_private.h
20         src/xbt/automatonparse_promela.c
21         src/xbt/mmalloc/attach.c
22         src/xbt/mmalloc/detach.c        
23         src/xbt/mmalloc/keys.c
24         src/xbt/mmalloc/mcalloc.c
25         src/xbt/mmalloc/mfree.c
26         src/xbt/mmalloc/mm_legacy.c             
27         src/xbt/mmalloc/mm.c
28         src/xbt/mmalloc/mmalloc.c
29         src/xbt/mmalloc/mmap-sup.c
30         src/xbt/mmalloc/mmcheck.c
31         src/xbt/mmalloc/mmemalign.c
32         src/xbt/mmalloc/mmprivate.h
33         src/xbt/mmalloc/mmstats.c
34         src/xbt/mmalloc/mmtrace.c
35         src/xbt/mmalloc/mrealloc.c
36         src/xbt/mmalloc/mvalloc.c
37         src/xbt/mmalloc/sbrk-sup.c
38         src/xbt/mmalloc/test/mmalloc_test.c
39         src/surf/maxmin_private.h
40         src/surf/trace_mgr_private.h
41         src/surf/surf_private.h
42         src/surf/surfxml_parse.c
43         src/surf/simgrid_dtd.c
44         src/surf/simgrid.dtd
45         src/surf/network_private.h
46         src/surf/network_gtnets_private.h
47         src/surf/gtnets/gtnets_interface.h
48         src/surf/gtnets/gtnets_simulator.h
49         src/surf/gtnets/gtnets_topology.h
50         src/surf/cpu_ti_private.h
51         src/surf/surf_routing_private.h
52         src/include/simgrid/platf_interface.h
53         src/include/surf/surf_resource.h
54         src/include/surf/datatypes.h
55         src/include/surf/maxmin.h
56         src/include/surf/trace_mgr.h
57         src/include/surf/surf.h
58         src/include/surf/surfxml_parse_values.h
59         src/include/surf/random_mgr.h
60         src/include/surf/surf_resource_lmm.h
61         src/include/xbt/wine_dbghelp.h
62         src/include/xbt/xbt_os_time.h
63         src/include/xbt/xbt_os_thread.h
64         src/include/mc/datatypes.h
65         src/include/mc/mc.h
66         src/include/simix/context.h
67         src/msg/msg_private.h
68         src/msg/msg_mailbox.h
69         src/simdag/private.h
70         src/simdag/dax.dtd
71         src/simdag/dax_dtd.h
72         src/simdag/dax_dtd.c
73         src/gras/DataDesc/ddt_parse.yy.l
74         src/gras/DataDesc/ddt_parse.yy.h
75         src/gras/Virtu/virtu_rl.h
76         src/gras/Virtu/virtu_sg.h
77         src/gras/Virtu/virtu_interface.h
78         src/gras/Virtu/virtu_private.h
79         src/gras/Transport/transport_interface.h
80         src/amok/Bandwidth/bandwidth_private.h
81         src/amok/amok_modinter.h
82         src/simix/private.h
83         src/simix/process_private.h
84         src/simix/host_private.h
85         src/simix/network_private.h
86         src/simix/smurf_private.h
87         src/simix/synchro_private.h
88         
89         src/smpi/private.h
90         src/smpi/smpi_mpi_dt_private.h
91         src/smpi/README
92         src/mk_supernovae.pl
93         
94         examples/gras/ping/ping.h
95         examples/gras/console/ping.h
96         examples/gras/mmrpc/mmrpc.h
97
98         tools/gras/gras_stub_generator.h
99         tools/tesh/run_context.h  
100         tools/tesh/tesh.h
101         
102         src/surf/network_ns3_private.h
103         src/surf/ns3/ns3_interface.h
104         src/surf/ns3/ns3_simulator.h
105         src/surf/ns3/my-point-to-point-helper.h
106         src/surf/ns3/red-queue.h
107 )
108
109 set(XBT_RL_SRC 
110         src/xbt/xbt_rl_synchro.c
111         src/xbt/xbt_rl_time.c
112 )
113
114 set(XBT_SG_SRC 
115         src/xbt/xbt_sg_synchro.c
116         src/xbt/xbt_sg_time.c
117 )     
118
119 set(SMPI_SRC
120         src/smpi/smpi_base.c
121         src/smpi/smpi_bench.c
122         src/smpi/smpi_global.c
123         src/smpi/smpi_mpi.c
124         src/smpi/smpi_pmpi.c
125         src/smpi/smpi_c99.c
126         src/smpi/smpi_f77.c
127         src/smpi/smpi_comm.c
128         src/smpi/smpi_group.c
129         src/smpi/smpi_coll.c
130         src/smpi/smpi_mpi_dt.c
131 )
132
133
134 set(GRAS_RL_SRC
135         src/gras/rl_stubs.c
136         src/xbt/xbt_os_thread.c
137         src/gras/Transport/rl_transport.c
138         src/gras/Transport/transport_plugin_file.c
139         src/gras/Transport/transport_plugin_tcp.c
140         src/gras/Virtu/rl_emul.c
141         src/gras/Virtu/rl_process.c
142         src/gras/Virtu/rl_dns.c
143         src/gras/Msg/rl_msg.c
144         ${XBT_RL_SRC}
145 )
146
147 set(XBT_SRC 
148         src/xbt/snprintf.c
149         src/xbt/xbt_str.c
150         src/xbt/xbt_strbuff.c
151         src/xbt/xbt_sha.c
152         src/xbt/ex.c
153         src/xbt_modinter.h
154         src/gras_modinter.h
155         src/xbt/xbt_virtu.c
156         src/xbt/xbt_os_time.c
157         src/xbt/log.c
158         src/xbt/xbt_log_appender_file.c
159         src/xbt/xbt_log_layout_simple.c
160         src/xbt/xbt_log_layout_format.c
161         src/xbt/mallocator.c
162         src/xbt/dynar.c
163         src/xbt/dict.c
164         src/xbt/dict_elm.c
165         src/xbt/dict_cursor.c
166         src/xbt/dict_multi.c
167         src/xbt/heap.c
168         src/xbt/fifo.c
169         src/xbt/swag.c
170         src/xbt/graph.c
171         src/xbt/set.c
172         src/xbt/xbt_matrix.c
173         src/xbt/xbt_queue.c
174         src/xbt/xbt_synchro.c
175         src/xbt/xbt_peer.c
176         src/xbt/xbt_main.c
177         src/xbt/config.c
178         src/xbt/cunit.c
179         src/xbt/graphxml_parse.c
180         src/xbt/setset.c
181         src/xbt/parmap.c
182         src/xbt/xbt_replay_trace_reader.c
183         src/xbt/lib.c
184         src/xbt/automaton.c
185 )
186
187 if(HAVE_MMAP)
188         set(XBT_SRC
189         ${XBT_SRC}
190         src/xbt/mmalloc/mm.c    
191         )
192 endif(HAVE_MMAP)
193
194 set(GTNETS_SRC 
195         src/surf/gtnets/gtnets_simulator.cc
196         src/surf/gtnets/gtnets_topology.cc
197         src/surf/gtnets/gtnets_interface.cc
198         src/surf/network_gtnets.c
199 )
200
201 set(NS3_SRC
202         src/surf/network_ns3.c
203         src/surf/ns3/ns3_interface.cc
204         src/surf/ns3/ns3_simulator.cc
205         src/surf/ns3/red-queue.cc
206         src/surf/ns3/my-point-to-point-helper.cc
207 )
208         
209 set(SURF_SRC 
210         src/surf/surf_model.c
211         src/surf/surf_action.c
212         src/surf/surf_routing.c
213         src/surf/surf_routing_none.c
214         src/surf/surf_routing_generic.c
215         src/surf/surf_routing_full.c
216         src/surf/surf_routing_floyd.c
217         src/surf/surf_routing_rulebased.c
218         src/surf/surf_routing_dijkstra.c
219         src/surf/surf_routing_cluster.c
220         src/surf/surf_routing_vivaldi.c
221         src/surf/surf_config.c
222         src/surf/maxmin.c
223         src/surf/fair_bottleneck.c
224         src/surf/lagrange.c
225         src/surf/trace_mgr.c
226         src/surf/random_mgr.c
227         src/surf/surf.c
228         src/surf/surfxml_parse.c
229         src/surf/surfxml_parseplatf.c
230         src/surf/cpu.c
231         src/surf/network.c
232         src/surf/network_im.c
233         src/surf/network_constant.c
234         src/surf/workstation.c
235         src/surf/workstation_ptask_L07.c
236         src/surf/cpu_ti.c
237         src/surf/cpu_im.c
238         src/surf/sg_platf.c
239         src/xbt/xbt_sg_stubs.c
240 )
241
242 set(SIMIX_SRC 
243         src/simix/smx_global.c
244         src/simix/smx_deployment.c
245         src/simix/smx_environment.c
246         src/simix/smx_host.c
247         src/simix/smx_process.c
248         src/simix/smx_context.c
249         src/simix/smx_synchro.c
250         src/simix/smx_network.c
251         src/simix/smx_context_base.c
252         src/simix/smx_user.c
253         src/simix/smx_smurf.c
254         src/simix/smx_context_raw.c
255 )
256
257 set(MSG_SRC
258         src/msg/msg_config.c
259         src/msg/msg_task.c
260         src/msg/msg_host.c
261         src/msg/msg_process.c
262         src/msg/msg_gos.c
263         src/msg/msg_global.c
264         src/msg/msg_environment.c
265         src/msg/msg_deployment.c
266         src/msg/msg_mailbox.c
267         src/msg/msg_actions.c
268 )
269
270 set(SIMDAG_SRC
271         src/simdag/sd_global.c
272         src/simdag/sd_link.c
273         src/simdag/sd_task.c
274         src/simdag/sd_workstation.c
275         src/simdag/sd_daxloader.c
276 )
277 if(HAVE_GRAPHVIZ)
278         set(SIMDAG_SRC 
279             ${SIMDAG_SRC} src/simdag/sd_dotloader.c
280         )
281 else(HAVE_GRAPHVIZ)
282         set(EXTRA_DIST
283             ${EXTRA_DIST} src/simdag/sd_dotloader.c
284         )
285 endif(HAVE_GRAPHVIZ)
286
287 set(GRAS_COMMON_SRC
288         src/gras/gras.c
289         src/gras/Transport/transport.c
290         src/gras/Transport/transport_private.h
291         src/gras/Msg/gras_msg_mod.c
292         src/gras/Msg/gras_msg_types.c
293         src/gras/Msg/gras_msg_exchange.c
294         src/gras/Msg/gras_msg_listener.c
295         src/gras/Msg/rpc.c 
296         src/gras/Msg/timer.c
297         src/gras/Msg/msg_interface.h
298         src/gras/Msg/msg_private.h
299         src/gras/Virtu/process.c
300         src/gras/Virtu/gras_module.c
301         src/gras/DataDesc/ddt_create.c
302         src/gras/DataDesc/ddt_convert.c
303         src/gras/DataDesc/ddt_exchange.c
304         src/gras/DataDesc/cbps.c
305         src/gras/DataDesc/datadesc.c
306         src/gras/DataDesc/datadesc_interface.h
307         src/gras/DataDesc/datadesc_private.h
308         src/gras/DataDesc/ddt_parse.c
309         src/gras/DataDesc/ddt_parse.yy.c
310 )
311
312 set(GRAS_SG_SRC
313         src/gras/Transport/sg_transport.c
314         src/gras/Transport/transport_plugin_sg.c
315         src/gras/Virtu/sg_emul.c
316         src/gras/Virtu/sg_process.c
317         src/gras/Virtu/sg_dns.c
318         src/gras/Msg/sg_msg.c
319         ${XBT_SG_SRC}
320 )
321
322 set(AMOK_SRC
323         src/amok/amok_base.c
324         src/amok/Bandwidth/bandwidth.c
325         src/amok/Bandwidth/saturate.c
326         src/amok/PeerManagement/peermanagement.c
327 )
328
329 set(LUA_SRC
330         src/bindings/lua/simgrid_lua.c
331         src/bindings/lua/lua_stub_generator.c
332         src/bindings/lua/lua_console.c
333         src/bindings/lua/lua_utils.c
334         src/bindings/lua/lua_state_cloner.c
335 )
336
337 set(TRACING_SRC
338         src/instr/instr_routing.c
339         src/instr/instr_config.c
340         src/instr/instr_interface.c
341         src/instr/instr_paje.c
342         src/instr/instr_paje_trace.c
343         src/instr/instr_msg_task.c
344         src/instr/instr_msg_process.c
345         src/instr/instr_surf.c
346         src/instr/instr_smpi.c
347         src/instr/instr_simdag.c
348         src/instr/instr_resource_utilization.c
349         src/instr/instr_private.h
350 )
351
352
353 set(JEDULE_SRC
354         include/instr/jedule/jedule_events.h
355         include/instr/jedule/jedule_output.h
356         include/instr/jedule/jedule_platform.h
357         include/instr/jedule/jedule_sd_binding.h
358         src/instr/jedule/jedule_events.c
359         src/instr/jedule/jedule_output.c
360         src/instr/jedule/jedule_platform.c
361         src/instr/jedule/jedule_sd_binding.c
362 )
363
364 set(MC_SRC
365         src/mc/mc_memory.c
366         src/mc/mc_checkpoint.c
367         src/mc/mc_state.c
368         src/mc/memory_map.c
369         src/mc/mc_global.c
370         src/mc/mc_dpor.c
371         src/mc/mc_request.c
372         src/mc/private.h
373         src/mc/mc_liveness.c
374 )
375
376 set(RNGSTREAM_SRC
377         src/rngstreams/RngStream.h
378         src/rngstreams/RngStream.c
379 )
380
381 set(headers_to_install
382         include/xbt/misc.h
383         include/xbt/sysdep.h
384         include/xbt/virtu.h
385         include/xbt/str.h
386         include/xbt/strbuff.h
387         include/xbt/hash.h
388         include/xbt/function_types.h
389         include/xbt/asserts.h 
390         include/xbt/ex.h
391         include/xbt/log.h
392         include/xbt/module.h
393         include/xbt/mallocator.h
394         include/xbt/dynar.h
395         include/xbt/dict.h
396         include/xbt/set.h
397         include/xbt/heap.h
398         include/xbt/graph.h
399         include/xbt/fifo.h
400         include/xbt/swag.h
401         include/xbt/lib.h
402         include/xbt/matrix.h
403         include/xbt/peer.h
404         include/xbt/config.h
405         include/xbt/cunit.h
406         include/xbt/graphxml_parse.h
407         include/xbt/graphxml.h
408         include/xbt/time.h
409         include/xbt/synchro.h
410         include/xbt/synchro_core.h
411         include/xbt/queue.h
412         include/xbt/setset.h
413         include/xbt/mmalloc.h
414         include/xbt/replay_trace_reader.h
415         include/xbt/parmap.h
416         include/xbt/automaton.h
417         include/xbt/automatonparse_promela.h
418         include/simgrid/platf.h
419         include/mc/modelchecker.h
420         include/msg/msg.h
421         include/msg/datatypes.h
422         include/simdag/simdag.h
423         include/simdag/datatypes.h
424         include/smpi/smpi.h
425         include/smpi/mpi.h
426         include/smpi/mpif.h
427         include/smpi/smpi_cocci.h
428         include/surf/surfxml_parse.h
429         include/surf/simgrid_dtd.h
430         include/surf/surf_routing.h
431         include/gras/datadesc.h
432         include/gras/transport.h
433         include/gras/virtu.h
434         include/gras/emul.h
435         include/gras/process.h
436         include/gras/module.h
437         include/gras/messages.h
438         include/gras/timer.h
439         include/amok/peermanagement.h
440         include/amok/bandwidth.h
441         include/instr/instr.h
442         include/gras.h 
443         include/xbt.h
444         include/simix/simix.h
445         include/simix/datatypes.h
446         include/simix/context.h
447 )
448 set(source_of_generated_headers
449         include/simgrid_config.h.in
450         include/smpi/smpif.h.in
451         src/context_sysv_config.h.in)
452
453 ### depend of some variables setted upper
454 # -->CONTEXT_THREADS CONTEXT_UCONTEXT
455 if(${CONTEXT_THREADS}) #pthread
456         set(SURF_SRC
457                 ${SURF_SRC}
458                 src/xbt/xbt_os_thread.c
459                 src/simix/smx_context_thread.c
460                 )
461 else(${CONTEXT_THREADS}) # NOT pthread
462         set(EXTRA_DIST
463                 ${EXTRA_DIST}
464                 src/xbt/xbt_os_thread.c
465                 src/simix/smx_context_thread.c
466                 )
467 endif(${CONTEXT_THREADS})
468
469 if(${CONTEXT_UCONTEXT}) #ucontext
470         set(SURF_SRC
471                 ${SURF_SRC}
472                 src/simix/smx_context_sysv.c
473         )
474 else(${CONTEXT_UCONTEXT}) # NOT ucontext
475         set(EXTRA_DIST
476                 ${EXTRA_DIST}
477                 src/simix/smx_context_sysv.c
478         )
479 endif(${CONTEXT_UCONTEXT})
480
481 # -->HAVE_GTNETS
482 if(HAVE_GTNETS)
483         set(GTNETS_USED 
484                 ${GTNETS_SRC}
485         )
486 else(HAVE_GTNETS)
487         set(GTNETS_USED "")
488         set(EXTRA_DIST
489                 ${EXTRA_DIST}
490                 ${GTNETS_SRC}
491         )
492 endif(HAVE_GTNETS)
493
494 ### Simgrid Lib sources
495 set(simgrid_sources
496         ${XBT_SRC}
497         ${SURF_SRC}
498         ${GTNETS_USED}
499         ${SIMIX_SRC}
500         ${MSG_SRC}
501         ${TRACING_SRC}
502         ${SIMDAG_SRC}
503         ${GRAS_COMMON_SRC}
504         ${GRAS_SG_SRC}
505         ${AMOK_SRC}
506         ${JEDULE_SRC}
507         ${RNGSTREAM_SRC}
508 )
509
510 if(HAVE_MC)
511         set(simgrid_sources
512                 ${simgrid_sources}
513                 ${MC_SRC}
514                 )
515 endif(HAVE_MC)
516
517 if(HAVE_NS3)
518         set(simgrid_sources
519                 ${simgrid_sources}
520                 ${NS3_SRC}
521         )
522 endif(HAVE_NS3)
523
524 # WINDOWS
525 if(WIN32)
526         set(simgrid_sources
527                 ${simgrid_sources}
528                 src/xbt/win32_ucontext.c
529                 src/xbt/xbt_os_thread.c
530                 src/simix/smx_context_thread.c
531                 )
532 endif(WIN32)
533
534 ### Gras Lib sources
535 set(gras_sources
536         ${XBT_SRC}
537         ${GRAS_COMMON_SRC}
538         ${GRAS_RL_SRC}
539         ${AMOK_SRC}
540 )
541
542 if(${HAVE_LUA})
543         set(simgrid_sources
544                 ${simgrid_sources}
545                 ${LUA_SRC}
546         )
547 elseif(${HAVE_LUA})
548         set(EXTRA_DIST
549                 ${EXTRA_DIST}
550                 ${LUA_SRC}
551         )
552 endif(${HAVE_LUA})
553
554 file(GLOB_RECURSE examples_to_install_in_doc
555 "examples/*.c"
556 "examples/*.h"
557 "examples/*.cxx"
558 "examples/*.hpp"
559 "examples/*.rb"
560 "examples/*.lua"
561 "examples/*.java"
562 "examples/*.xml"
563 "examples/*README"
564 )
565
566
567     
568 set(DOC_SOURCES
569         doc/installSimgrid.doc
570         doc/bindings.doc
571         doc/options.doc
572         doc/use.doc
573         doc/tracing.doc
574         doc/pls.doc
575         doc/gtut-howto-design.doc
576         doc/gtut-howto.doc
577         doc/gtut-introduction.doc
578         doc/gtut-main.doc
579         doc/gtut-tour-00-install.doc
580         doc/gtut-tour-01-bones.doc
581         doc/gtut-tour-02-simple.doc
582         doc/gtut-tour-03-args.doc
583         doc/gtut-tour-04-callback.doc
584         doc/gtut-tour-05-globals.doc
585         doc/gtut-tour-06-logs.doc
586         doc/gtut-tour-07-timers.doc
587         doc/gtut-tour-08-exceptions.doc
588         doc/gtut-tour-09-simpledata.doc
589         doc/gtut-tour-10-rpc.doc
590         doc/gtut-tour-11-explicitwait.doc
591         doc/gtut-tour-12-staticstruct.doc
592         doc/gtut-tour-13-pointers.doc
593         doc/gtut-tour-14-dynar.doc
594         doc/gtut-tour-15-manualdatadef.doc
595         doc/gtut-tour-16-exchangecb.doc
596         doc/gtut-tour.doc
597         doc/gtut-tour-recap-messages.doc
598         
599         #doc/index-API.doc
600         doc/index.doc
601         doc/module-amok.doc
602         doc/module-gras.doc
603         doc/module-msg.doc
604         doc/module-sd.doc
605         doc/modules.doc
606         doc/module-surf.doc
607         doc/module-xbt.doc
608         
609         doc/gtut-files/01-bones.c
610         doc/gtut-files/01-bones.output
611         doc/gtut-files/02-simple.c
612         doc/gtut-files/02-simple.output
613         doc/gtut-files/03-args.c
614         doc/gtut-files/03-args.output
615         doc/gtut-files/03-args.xml
616         doc/gtut-files/04-callback.c
617         doc/gtut-files/04-callback.output
618         doc/gtut-files/05-globals.c
619         doc/gtut-files/05-globals.output
620         doc/gtut-files/06-logs.c
621         doc/gtut-files/06-logs.output
622         doc/gtut-files/06-logs.output.error
623         doc/gtut-files/06-logs.output.fmt
624         doc/gtut-files/06-logs.output.fmt-bt
625         doc/gtut-files/06-logs.output.verbose
626         doc/gtut-files/07-timers.c
627         doc/gtut-files/07-timers.output
628         doc/gtut-files/08-exceptions.c
629         doc/gtut-files/08-exceptions.output
630         doc/gtut-files/09-datatype-dump.c
631         doc/gtut-files/09-simpledata.c
632         doc/gtut-files/09-simpledata.output
633         doc/gtut-files/10-rpc.c
634         doc/gtut-files/10-rpc.output
635         doc/gtut-files/11-explicitwait.c
636         doc/gtut-files/11-explicitwait.output
637         doc/gtut-files/11-explicitwait.xml
638         doc/gtut-files/gtut-platform-3nodes.xml
639         doc/gtut-files/gtut-platform.xml
640         doc/gtut-files/Makefile
641         doc/gtut-files/README
642         doc/gtut-files/test.xml
643         
644         doc/webcruft/awstats_logo3.png
645         doc/webcruft/Paje_MSG_screenshot.jpg
646         doc/webcruft/Paje_MSG_screenshot_thn.jpg
647         doc/webcruft/poster_thumbnail.png
648         doc/webcruft/simgrid_logo.png
649         doc/webcruft/simgrid_logo_small.png
650         doc/triva-graph_configuration.png
651         doc/triva-graph_visualization.png
652         doc/simgrid.css
653         
654         doc/Doxyfile.in
655         doc/footer.html.in
656         
657         tools/doxygen/doxygen_postprocesser.pl
658         tools/doxygen/index_create.pl
659         tools/doxygen/toc_create.pl
660         tools/doxygen/bibtex2html_wrapper.pl
661         tools/doxygen/fig2dev_postprocessor.pl
662         tools/doxygen/xbt_log_extract_hierarchy.pl
663 )
664
665 set(DOC_FIGS
666         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules.fig
667         ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules2.fig
668         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_test.fig
669         ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_sat.fig
670         ${CMAKE_HOME_DIRECTORY}/doc/fig/gras_comm.fig
671 )
672
673 file(GLOB_RECURSE add_src_files
674 "teshsuite/*.c"
675 "teshsuite/*.cxx"
676 "teshsuite/*CMakeLists.txt"
677 "testsuite/*.c"
678 "testsuite/*.cxx"
679 "testsuite/*CMakeLists.txt"
680 "tools/*.c"
681 "tools/*.cxx"
682 "tools/*CMakeLists.txt"
683 "examples/*.c"
684 "examples/*.cxx"
685 "examples/*.lua"
686 "examples/*.rb"
687 "examples/*CMakeLists.txt"
688 "src/bindings/*.lua"
689 "src/bindings/*.rb"
690 "src/bindings/*.c"
691 "src/bindings/*.h"
692 "src/bindings/*CMakeLists.txt"
693 )
694 set(add_src_files
695         ${add_src_files}
696         CMakeLists.txt
697         src/smpi/smpicc.in
698         src/smpi/smpif2c.in
699         src/smpi/smpiff.in
700         src/smpi/smpirun.in
701         src/simix/smx_context_sysv_private.h
702 )
703
704 file(GLOB_RECURSE xml_files
705 "examples/*.xml"
706 "include/*.xml"
707 "src/*.xml"
708 "teshsuite/*.xml"
709 "testsuite/*.xml"
710 "tools/*.xml"
711 )
712
713 file(GLOB_RECURSE tesh_files
714 "examples/*.tesh"
715 "include/*.tesh"
716 "src/*.tesh"
717 "teshsuite/*.tesh"
718 "testsuite/*.tesh"
719 "tools/*.tesh"
720 )
721
722 set(txt_files
723 "testsuite/surf/trace_A_failure.txt"
724 "testsuite/surf/trace_A.txt"
725 "testsuite/surf/trace_B.txt"
726 "examples/smpi/hostfile"
727 "examples/msg/trace/file.trace"
728 "examples/msg/link5_state.trace"
729 "examples/msg/fafard_state.trace"
730 "examples/msg/jupiter_state.trace"
731 "examples/msg/actions/actions_allReduce.txt"
732 "examples/msg/actions/actions_reduce.txt"
733 "examples/msg/actions/actions.txt"
734 "examples/msg/actions/actions_barrier.txt"
735 "examples/msg/actions/actions_split_p0.txt"
736 "examples/msg/actions/actions_with_isend.txt"
737 "examples/msg/actions/actions_bcast.txt"
738 "examples/msg/actions/actions_split_p1.txt"
739 "examples/msg/actions/CMakeLists.txt"
740 "examples/msg/migration/migration.deploy"
741 "teshsuite/gras/datadesc/datadesc.little32_4"
742 "teshsuite/gras/datadesc/datadesc.little64"
743 "teshsuite/gras/datadesc/datadesc.big32_8_4"
744 "teshsuite/gras/datadesc/mk_datadesc_structs.pl"
745 "teshsuite/gras/msg_handle/test_rl.tesh"
746 "teshsuite/gras/msg_handle/test_sg_32.tesh"
747 "teshsuite/gras/msg_handle/test_sg_64.tesh"
748 "teshsuite/gras/empty_main/test_rl.tesh"
749 "teshsuite/gras/empty_main/test_sg.tesh"
750 "teshsuite/gras/small_sleep/test_sg_32.tesh"
751 "teshsuite/gras/small_sleep/test_sg_64.tesh"
752 "teshsuite/simdag/platforms/bob.fail"
753 "teshsuite/simdag/platforms/bob.trace"
754 "teshsuite/simdag/platforms/bob0_availability_file.trace"
755 "teshsuite/simdag/platforms/bob0_state_file.trace"
756 "teshsuite/simdag/platforms/bob2_availability_file.trace"
757 "teshsuite/simdag/platforms/bob2_state_file.trace"
758 "teshsuite/simdag/platforms/link1.bw"
759 "teshsuite/simdag/platforms/link1.fail"
760 "teshsuite/simdag/platforms/link1.lat"
761 "examples/gras/ping/test_rl.tesh"
762 "examples/gras/rpc/test_rl.tesh"
763 "examples/gras/spawn/test_rl.tesh"
764 "examples/gras/timer/test_rl.tesh"
765 "examples/gras/chrono/test_rl.tesh"
766 "examples/gras/mutual_exclusion/simple_token/test_rl.tesh"
767 "examples/gras/mmrpc/test_rl.tesh"
768 "examples/gras/all2all/test_rl.tesh"
769 "examples/gras/pmm/test_rl.tesh"
770 "examples/gras/synchro/test_rl.tesh"
771 "examples/gras/properties/test_rl.tesh"
772 "examples/gras/ping/test_sg_32.tesh"
773 "examples/gras/rpc/test_sg_32.tesh"
774 "examples/gras/spawn/test_sg_32.tesh"
775 "examples/gras/timer/test_sg_32.tesh"
776 "examples/gras/chrono/test_sg_32.tesh"
777 "examples/gras/mutual_exclusion/simple_token/test_sg_32.tesh"
778 "examples/gras/mmrpc/test_sg_32.tesh"
779 "examples/gras/all2all/test_sg_32.tesh"
780 "examples/gras/pmm/test_sg_32.tesh"
781 "examples/gras/synchro/test_sg_32.tesh"
782 "examples/gras/ping/test_sg_64.tesh"
783 "examples/gras/rpc/test_sg_64.tesh"
784 "examples/gras/spawn/test_sg_64.tesh"
785 "examples/gras/timer/test_sg_64.tesh"
786 "examples/gras/chrono/test_sg_64.tesh"
787 "examples/gras/mutual_exclusion/simple_token/test_sg_64.tesh"
788 "examples/gras/mmrpc/test_sg_64.tesh"
789 "examples/gras/all2all/test_sg_64.tesh"
790 "examples/gras/pmm/test_sg_64.tesh"
791 "examples/gras/synchro/test_sg_64.tesh"
792 "examples/gras/properties/test_sg.tesh"
793 )
794
795 set(txt_files
796         ${txt_files}
797         AUTHORS
798         ChangeLog
799         COPYING
800         LICENSE-LGPL-2.1
801         NEWS
802         TODO
803         configure
804         INSTALL
805 )
806
807 file(GLOB_RECURSE README_files
808 "*README"
809 )
810         
811 string(REPLACE "${CMAKE_HOME_DIRECTORY}/" "" README_files "${README_files}")
812
813 file(GLOB_RECURSE CMAKE_SOURCE_FILES
814 "buildtools/Cmake/Makefile.default"
815 "buildtools/Cmake/test_java.sh"
816 "buildtools/Cmake/*.cmake"
817 "buildtools/Cmake/*.h.in"
818 "buildtools/Cmake/*.pl"
819 "buildtools/Cmake/*.sh"
820 "buildtools/Cmake/test_prog/*.c"
821 "buildtools/Cmake/test_prog/*.cpp"
822 )
823
824 set(bin_files
825 tools/MSG_visualization/colorize.pl
826 tools/sg_unit_extractor.pl
827 tools/simgrid_update_xml.pl
828 buildtools/Cmake/tesh.pl
829 )
830
831 # This is the complete list of what will be added to the source archive
832 set(source_to_pack      
833         ${headers_to_install}
834         ${source_of_generated_headers}
835         ${XBT_RL_SRC}
836         ${EXTRA_DIST}
837         ${SMPI_SRC}
838         ${GRAS_RL_SRC}
839         ${XBT_SRC}
840         ${GTNETS_SRC}
841         ${NS3_SRC}
842         ${SURF_SRC}
843         ${SIMIX_SRC}
844         ${TRACING_SRC}
845         ${MSG_SRC}
846         ${SIMDAG_SRC}
847         ${GRAS_COMMON_SRC}
848         ${GRAS_SG_SRC}
849         ${AMOK_SRC}
850         ${LUA_SRC}
851         ${MC_SRC}
852         ${JEDULE_SRC}
853         ${RNGSTREAM_SRC}
854         ${add_src_files}
855         ${xml_files}
856         ${tesh_files}
857         ${txt_files}
858         ${CMAKE_SOURCE_FILES}
859         ${bin_files}
860         ${DOC_SOURCES}
861         ${DOC_FIGS}
862         ${README_files}
863         buildtools/Cmake/simgrid.nsi.in 
864 )