Logo AND Algorithmique Numérique Distribuée

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