Logo AND Algorithmique Numérique Distribuée

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