Logo AND Algorithmique Numérique Distribuée

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