Logo AND Algorithmique Numérique Distribuée

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