Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'torus'
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
1 ### define source packages
2
3 set(EXTRA_DIST
4   include/xbt/win32_ucontext.h
5   src/bindings/java/MANIFEST.MF
6   src/include/instr/instr_interface.h
7   src/include/mc/datatypes.h
8   src/include/mc/mc.h
9   src/include/simgrid/platf_interface.h
10   src/include/simgrid/sg_config.h
11   src/include/smpi/smpi_interface.h
12   src/include/surf/datatypes.h
13   src/include/surf/maxmin.h
14   src/include/surf/random_mgr.h
15   src/include/surf/surf.h
16   src/include/surf/surf_resource.h
17   src/include/surf/surf_resource_lmm.h
18   src/include/surf/surfxml_parse_values.h
19   src/include/surf/trace_mgr.h
20   src/include/xbt/wine_dbghelp.h
21   src/include/xbt/xbt_os_time.h
22   src/mk_supernovae.pl
23   src/msg/msg_mailbox.h
24   src/msg/msg_private.h
25   src/portable.h
26   src/simdag/dax.dtd
27   src/simdag/dax_dtd.c
28   src/simdag/dax_dtd.h
29   src/simdag/private.h
30   src/simix/smx_host_private.h
31   src/simix/smx_io_private.h
32   src/simix/smx_network_private.h
33   src/simix/smx_private.h
34   src/simix/smx_process_private.h
35   src/simix/smx_smurf_private.h
36   src/simix/smx_synchro_private.h
37   src/smpi/README
38   src/smpi/colls/colls.h
39   src/smpi/colls/colls_private.h
40   src/smpi/colls/coll_tuned_topo.h
41   src/smpi/private.h
42   src/smpi/smpi_mpi_dt_private.h
43   src/surf/plugins/energy.hpp
44   src/surf/cpu_interface.hpp
45   src/surf/cpu_ti.hpp
46   src/surf/cpu_cas01.hpp
47   src/surf/gtnets/gtnets_interface.h
48   src/surf/gtnets/gtnets_simulator.h
49   src/surf/gtnets/gtnets_topology.h
50   src/surf/maxmin_private.hpp
51   src/surf/network_interface.hpp
52   src/surf/network_gtnets.hpp
53   src/surf/network_ns3_private.h
54   src/surf/network_cm02.hpp
55   src/surf/network_smpi.hpp
56   src/surf/network_constant.hpp
57   src/surf/ns3/my-point-to-point-helper.h
58   src/surf/ns3/ns3_interface.h
59   src/surf/ns3/ns3_simulator.h
60   src/surf/ns3/red-queue.h
61   src/surf/platf_generator_private.h
62   src/surf/simgrid.dtd
63   src/surf/simgrid_dtd.c
64   src/surf/storage_interface.hpp
65   src/surf/storage_n11.hpp
66   src/surf/surf_interface.hpp
67   src/surf/surf_private.h
68   src/surf/surf_routing_private.hpp
69   src/surf/surf_routing.hpp
70   src/surf/surf_routing_cluster.hpp
71   src/surf/surf_routing_cluster_torus.hpp
72   src/surf/surf_routing_dijkstra.hpp
73   src/surf/surf_routing_floyd.hpp
74   src/surf/surf_routing_full.hpp
75   src/surf/surf_routing_generic.hpp
76   src/surf/surf_routing_none.hpp
77   src/surf/surf_routing_vivaldi.hpp
78   src/surf/surfxml_parse.c
79   src/surf/trace_mgr_private.h
80   src/surf/vm_workstation_interface.hpp
81   src/surf/vm_workstation_hl13.hpp
82   src/surf/workstation_interface.hpp
83   src/surf/workstation_clm03.hpp
84   src/surf/workstation_ptask_L07.hpp
85   src/win32/config.h
86   src/xbt/automaton/automaton_lexer.yy.c
87   src/xbt/automaton/parserPromela.lex
88   src/xbt/automaton/parserPromela.tab.cacc
89   src/xbt/automaton/parserPromela.tab.hacc
90   src/xbt/automaton/parserPromela.yacc
91   src/xbt/backtrace_dummy.c
92   src/xbt/backtrace_linux.c
93   src/xbt/backtrace_windows.c
94   src/xbt/dict_private.h
95   src/xbt/ex_interface.h
96   src/xbt/fifo_private.h
97   src/xbt/graph_private.h
98   src/xbt/graphxml.c
99   src/xbt/graphxml.dtd
100   src/xbt/graphxml_parse.c
101   src/xbt/heap_private.h
102   src/xbt/log_private.h
103   src/xbt/mallocator_private.h
104   src/xbt/mmalloc/mfree.c
105   src/xbt/mmalloc/mm.c
106   src/xbt/mmalloc/mm_diff.c
107   src/xbt/mmalloc/mm_legacy.c
108   src/xbt/mmalloc/mm_module.c
109   src/xbt/mmalloc/mmalloc.c
110   src/xbt/mmalloc/mmalloc.info
111   src/xbt/mmalloc/mmalloc.texi
112   src/xbt/mmalloc/mmorecore.c
113   src/xbt/mmalloc/mmprivate.h
114   src/xbt/mmalloc/mmtrace.awk
115   src/xbt/mmalloc/mrealloc.c
116   src/xbt/setset_private.h
117   src/xbt/win32_ucontext.c
118   tools/tesh/run_context.h
119   tools/tesh/tesh.h
120   )
121
122 set(SMPI_SRC
123   src/smpi/instr_smpi.c
124   src/smpi/smpi_base.c
125   src/smpi/smpi_bench.c
126   src/smpi/smpi_c99.c
127   src/smpi/smpi_coll.c
128   src/smpi/smpi_comm.c
129   src/smpi/smpi_dvfs.c
130   src/smpi/smpi_global.c
131   src/smpi/smpi_group.c
132   src/smpi/smpi_mpi.c
133   src/smpi/smpi_mpi_dt.c
134   src/smpi/smpi_pmpi.c
135   src/smpi/smpi_replay.c
136   src/smpi/colls/smpi_openmpi_selector.c
137   src/smpi/colls/smpi_mpich_selector.c
138   src/smpi/colls/colls_global.c
139   src/smpi/colls/allgather-2dmesh.c
140   src/smpi/colls/allgather-3dmesh.c
141   src/smpi/colls/allgather-bruck.c
142   src/smpi/colls/allgather-GB.c
143   src/smpi/colls/allgather-loosely-lr.c
144   src/smpi/colls/allgather-NTSLR.c
145   src/smpi/colls/allgather-NTSLR-NB.c
146   src/smpi/colls/allgather-pair.c
147   src/smpi/colls/allgather-rdb.c
148   src/smpi/colls/allgather-rhv.c
149   src/smpi/colls/allgather-ring.c
150   src/smpi/colls/allgather-SMP-NTS.c
151   src/smpi/colls/allgather-smp-simple.c
152   src/smpi/colls/allgather-spreading-simple.c
153   src/smpi/colls/allgather-ompi-neighborexchange.c
154   src/smpi/colls/allgatherv-GB.c  
155   src/smpi/colls/allgatherv-pair.c
156   src/smpi/colls/allgatherv-ring.c
157   src/smpi/colls/allgatherv-ompi-neighborexchange.c
158   src/smpi/colls/allgatherv-ompi-bruck.c
159   src/smpi/colls/allgatherv-mpich-rdb.c
160   src/smpi/colls/allgatherv-mpich-ring.c
161   src/smpi/colls/allreduce-lr.c
162   src/smpi/colls/allreduce-rab1.c
163   src/smpi/colls/allreduce-rab2.c
164   src/smpi/colls/allreduce-rab-rdb.c
165   src/smpi/colls/allreduce-rdb.c
166   src/smpi/colls/allreduce-redbcast.c
167   src/smpi/colls/allreduce-smp-binomial.c
168   src/smpi/colls/allreduce-smp-binomial-pipeline.c
169   src/smpi/colls/allreduce-smp-rdb.c
170   src/smpi/colls/allreduce-smp-rsag.c
171   src/smpi/colls/allreduce-smp-rsag-lr.c
172   src/smpi/colls/allreduce-smp-rsag-rab.c
173   src/smpi/colls/allreduce-ompi-ring-segmented.c
174   src/smpi/colls/alltoall-2dmesh.c
175   src/smpi/colls/alltoall-3dmesh.c
176 #  src/smpi/colls/alltoall-bruck.c
177   src/smpi/colls/alltoall-pair.c
178   src/smpi/colls/alltoall-pair-light-barrier.c
179   src/smpi/colls/alltoall-pair-mpi-barrier.c
180   src/smpi/colls/alltoall-pair-one-barrier.c
181   src/smpi/colls/alltoall-rdb.c
182   src/smpi/colls/alltoall-ring.c
183   src/smpi/colls/alltoall-ring-light-barrier.c
184   src/smpi/colls/alltoall-ring-mpi-barrier.c
185   src/smpi/colls/alltoall-ring-one-barrier.c
186   src/smpi/colls/alltoallv-pair.c   
187   src/smpi/colls/alltoallv-pair-light-barrier.c
188   src/smpi/colls/alltoallv-pair-mpi-barrier.c
189   src/smpi/colls/alltoallv-pair-one-barrier.c 
190   src/smpi/colls/alltoallv-ring.c
191   src/smpi/colls/alltoallv-ring-light-barrier.c
192   src/smpi/colls/alltoallv-ring-mpi-barrier.c
193   src/smpi/colls/alltoallv-ring-one-barrier.c
194   src/smpi/colls/alltoallv-bruck.c
195   src/smpi/colls/alltoallv-ompi-basic-linear.c
196   src/smpi/colls/bcast-arrival-pattern-aware.c
197   src/smpi/colls/bcast-arrival-pattern-aware-wait.c
198   src/smpi/colls/bcast-arrival-scatter.c
199   src/smpi/colls/bcast-binomial-tree.c
200   src/smpi/colls/bcast-flattree.c
201   src/smpi/colls/bcast-flattree-pipeline.c
202   src/smpi/colls/bcast-NTSB.c
203   src/smpi/colls/bcast-NTSL.c
204   src/smpi/colls/bcast-NTSL-Isend.c
205   src/smpi/colls/bcast-scatter-LR-allgather.c
206   src/smpi/colls/bcast-scatter-rdb-allgather.c
207   src/smpi/colls/bcast-SMP-binary.c
208   src/smpi/colls/bcast-SMP-binomial.c
209   src/smpi/colls/bcast-SMP-linear.c
210   src/smpi/colls/coll_tuned_topo.c
211   src/smpi/colls/bcast-ompi-split-bintree.c
212   src/smpi/colls/bcast-ompi-pipeline.c
213   src/smpi/colls/reduce-arrival-pattern-aware.c
214   src/smpi/colls/reduce-binomial.c
215   src/smpi/colls/reduce-flat-tree.c
216   src/smpi/colls/reduce-NTSL.c
217   src/smpi/colls/reduce-scatter-gather.c
218   src/smpi/colls/reduce-ompi.c
219   src/smpi/colls/gather-ompi.c
220   src/smpi/colls/reduce_scatter-ompi.c
221   src/smpi/colls/reduce_scatter-mpich.c
222   src/smpi/colls/smpi_automatic_selector.c
223   src/smpi/colls/scatter-ompi.c
224   src/smpi/colls/barrier-ompi.c
225   )
226
227 if(SMPI_F2C)
228   set(SMPI_SRC
229     ${SMPI_SRC}
230     src/smpi/smpi_f77.c
231     )
232 else()
233   set(EXTRA_DIST
234     ${EXTRA_DIST}
235     src/smpi/smpi_f77.c
236   )
237 endif()
238
239
240 set(XBT_SRC
241   src/xbt/RngStream.c
242   src/xbt/automaton/automaton.c
243   src/xbt/automaton/automatonparse_promela.c
244   src/xbt/config.c
245   src/xbt/cunit.c
246   src/xbt/dict.c
247   src/xbt/dict_cursor.c
248   src/xbt/dict_elm.c
249   src/xbt/dict_multi.c
250   src/xbt/dynar.c
251   src/xbt/ex.c
252   src/xbt/fifo.c
253   src/xbt/graph.c
254   src/xbt/graphxml_parse.c
255   src/xbt/heap.c
256   src/xbt/lib.c
257   src/xbt/log.c
258   src/xbt/mallocator.c
259   src/xbt/parmap.c
260   src/xbt/set.c
261   src/xbt/setset.c
262   src/xbt/snprintf.c
263   src/xbt/swag.c
264   src/xbt/xbt_log_appender_file.c
265   src/xbt/xbt_log_layout_format.c
266   src/xbt/xbt_log_layout_simple.c
267   src/xbt/xbt_main.c
268   src/xbt/xbt_matrix.c
269   src/xbt/xbt_os_time.c
270   src/xbt/xbt_peer.c
271   src/xbt/xbt_queue.c
272   src/xbt/xbt_replay.c
273   src/xbt/xbt_sg_synchro.c
274   src/xbt/xbt_sha.c
275   src/xbt/xbt_str.c
276   src/xbt/xbt_strbuff.c
277   src/xbt/xbt_virtu.c
278   src/xbt_modinter.h
279   )
280
281 if(HAVE_MMAP)
282   set(XBT_SRC
283     ${XBT_SRC}
284     src/xbt/mmalloc/mm.c
285     )
286 endif()
287
288 set(GTNETS_SRC
289   src/surf/gtnets/gtnets_interface.cc
290   src/surf/gtnets/gtnets_simulator.cc
291   src/surf/gtnets/gtnets_topology.cc
292   src/surf/network_gtnets.cpp
293   )
294
295 set(NS3_SRC
296   src/surf/network_ns3.c
297   src/surf/ns3/my-point-to-point-helper.cc
298   src/surf/ns3/ns3_interface.cc
299   src/surf/ns3/ns3_simulator.cc
300   src/surf/ns3/red-queue.cc
301   )
302
303 set(SURF_SRC
304   src/surf/plugins/energy.cpp
305   src/surf/cpu_interface.cpp
306   src/surf/cpu_ti.cpp
307   src/surf/cpu_cas01.cpp
308   src/surf/fair_bottleneck.cpp
309   src/surf/instr_routing.c
310   src/surf/instr_surf.c
311   src/surf/lagrange.cpp
312   src/surf/maxmin.cpp
313   src/surf/network_interface.cpp
314   src/surf/network_cm02.cpp
315   src/surf/network_smpi.cpp  
316   src/surf/network_constant.cpp
317   src/surf/platf_generator.c
318   src/surf/random_mgr.c
319   src/surf/sg_platf.c
320   src/surf/storage_interface.cpp
321   src/surf/storage_n11.cpp
322   src/surf/surf_interface.cpp
323   src/surf/surf_c_bindings.cpp
324   src/surf/surf_routing.cpp  
325   src/surf/surf_routing_cluster.cpp
326   src/surf/surf_routing_cluster_torus.cpp
327   src/surf/surf_routing_dijkstra.cpp
328   src/surf/surf_routing_floyd.cpp
329   src/surf/surf_routing_full.cpp
330   src/surf/surf_routing_generic.cpp
331   src/surf/surf_routing_none.cpp
332   src/surf/surf_routing_vivaldi.cpp
333   src/surf/surfxml_parse.c
334   src/surf/surfxml_parseplatf.c
335   src/surf/trace_mgr.c
336   src/surf/workstation_interface.cpp
337   src/surf/workstation_clm03.cpp
338   src/surf/workstation_ptask_L07.cpp
339   src/surf/vm_workstation_interface.cpp
340   src/surf/vm_workstation_hl13.cpp
341   src/xbt/xbt_sg_stubs.c
342   )
343
344 set(SIMIX_SRC
345   src/simix/smx_context.c
346   src/simix/smx_context_base.c
347   src/simix/smx_context_raw.c
348   src/simix/smx_deployment.c
349   src/simix/smx_environment.c
350   src/simix/smx_global.c
351   src/simix/smx_host.c
352   src/simix/smx_io.c
353   src/simix/smx_network.c
354   src/simix/smx_process.c
355   src/simix/smx_smurf.c
356   src/simix/smx_synchro.c
357   src/simix/smx_user.c
358   src/simix/smx_vm.c
359   )
360
361 set(SIMGRID_SRC
362   src/simgrid/sg_config.c
363   )
364
365 set(MSG_SRC
366   src/msg/instr_msg_process.c
367   src/msg/instr_msg_task.c
368   src/msg/instr_msg_vm.c
369   src/msg/msg_actions.c
370   src/msg/msg_deployment.c
371   src/msg/msg_environment.c
372   src/msg/msg_global.c
373   src/msg/msg_gos.c
374   src/msg/msg_host.c
375   src/msg/msg_io.c
376   src/msg/msg_mailbox.c
377   src/msg/msg_process.c
378   src/msg/msg_synchro.c
379   src/msg/msg_task.c
380   src/msg/msg_vm.c
381   )
382
383 #* ****************************************************************************************** *#
384 #* TUTORIAL: New API                                                                          *#
385
386 set(MSG_SRC
387   ${MSG_SRC}
388   src/msg/msg_new_api.c
389   )
390 set(EXTRA_DIST
391   ${EXTRA_DIST}
392   src/simix/smx_new_api_private.h
393   )
394 set(SIMIX_SRC
395   ${SIMIX_SRC}
396   src/simix/smx_new_api.c
397 )
398 #* ****************************************************************************************** *#
399
400 set(SIMDAG_SRC
401   src/simdag/instr_sd_task.c
402   src/simdag/sd_daxloader.c
403   src/simdag/sd_global.c
404   src/simdag/sd_link.c
405   src/simdag/sd_task.c
406   src/simdag/sd_workstation.c
407   )
408 if(HAVE_GRAPHVIZ)
409   set(SIMDAG_SRC
410     ${SIMDAG_SRC} src/simdag/sd_dotloader.c
411     )
412 else()
413   set(EXTRA_DIST
414     ${EXTRA_DIST} src/simdag/sd_dotloader.c
415     )
416 endif()
417
418 set(BINDINGS_SRC
419   src/bindings/bindings_global.c
420   src/bindings/lua/lua_private.h
421   src/bindings/lua/lua_state_cloner.h
422   src/bindings/lua/lua_utils.h
423   src/bindings/lua/simgrid_lua.h
424   )
425
426 set(JMSG_C_SRC
427   src/bindings/java/jmsg.c
428   src/bindings/java/jmsg.h
429   src/bindings/java/jmsg_as.c
430   src/bindings/java/jmsg_as.h
431   src/bindings/java/jmsg_comm.c
432   src/bindings/java/jmsg_comm.h
433   src/bindings/java/jmsg_file.c
434   src/bindings/java/jmsg_file.h
435   src/bindings/java/jmsg_host.c
436   src/bindings/java/jmsg_host.h
437   src/bindings/java/jmsg_process.c
438   src/bindings/java/jmsg_process.h
439   src/bindings/java/jmsg_rngstream.c
440   src/bindings/java/jmsg_rngstream.h
441   src/bindings/java/jmsg_synchro.c
442   src/bindings/java/jmsg_synchro.h
443   src/bindings/java/jmsg_task.c
444   src/bindings/java/jmsg_task.h
445   src/bindings/java/jmsg_vm.c
446   src/bindings/java/jmsg_vm.h
447   src/bindings/java/jxbt_utilities.c
448   src/bindings/java/jxbt_utilities.h
449   src/bindings/java/smx_context_cojava.c
450   src/bindings/java/smx_context_cojava.h
451   src/bindings/java/smx_context_java.c
452   src/bindings/java/smx_context_java.h
453 )
454
455 set(JMSG_JAVA_SRC
456   src/bindings/java/org/simgrid/msg/As.java     
457   src/bindings/java/org/simgrid/msg/Comm.java
458   src/bindings/java/org/simgrid/msg/File.java
459   src/bindings/java/org/simgrid/msg/Host.java
460   src/bindings/java/org/simgrid/msg/HostFailureException.java
461   src/bindings/java/org/simgrid/msg/HostNotFoundException.java
462   src/bindings/java/org/simgrid/msg/JniException.java
463   src/bindings/java/org/simgrid/msg/Msg.java
464   src/bindings/java/org/simgrid/msg/MsgException.java
465   src/bindings/java/org/simgrid/msg/Mutex.java
466   src/bindings/java/org/simgrid/msg/Semaphore.java
467   src/bindings/java/org/simgrid/msg/NativeException.java
468   src/bindings/java/org/simgrid/msg/Process.java
469   src/bindings/java/org/simgrid/msg/ProcessKilledError.java
470   src/bindings/java/org/simgrid/msg/ProcessNotFoundException.java
471   src/bindings/java/org/simgrid/msg/RngStream.java
472   src/bindings/java/org/simgrid/msg/Task.java
473   src/bindings/java/org/simgrid/msg/TaskCancelledException.java
474   src/bindings/java/org/simgrid/msg/TimeoutException.java
475   src/bindings/java/org/simgrid/msg/TransferFailureException.java
476   src/bindings/java/org/simgrid/msg/VM.java
477 )
478
479 set(JTRACE_C_SRC
480   src/bindings/java/jtrace.c
481   src/bindings/java/jtrace.h
482 )
483
484 set(JTRACE_JAVA_SRC
485   src/bindings/java/org/simgrid/trace/Trace.java
486 )
487
488 if(HAVE_TRACING)
489   list(APPEND JMSG_C_SRC ${JTRACE_C_SRC})
490   list(APPEND JMSG_JAVA_SRC ${JTRACE_JAVA_SRC})
491 else()
492   list(APPEND EXTRA_DIST ${JTRACE_C_SRC})
493   list(APPEND EXTRA_DIST ${JTRACE_JAVA_SRC})
494 endif()
495
496 set(LUA_SRC
497   src/bindings/lua/lua_comm.c
498   src/bindings/lua/lua_host.c
499   src/bindings/lua/lua_platf.c
500   src/bindings/lua/lua_process.c
501   src/bindings/lua/lua_state_cloner.c
502   src/bindings/lua/lua_task.c
503   src/bindings/lua/lua_utils.c
504   src/bindings/lua/simgrid_lua.c
505   )
506
507 set(TRACING_SRC
508   src/instr/instr_config.c
509   src/instr/instr_interface.c
510   src/instr/instr_paje_containers.c
511   src/instr/instr_TI_trace.c
512   src/instr/instr_paje_trace.c
513   src/instr/instr_trace.c
514   src/instr/instr_paje_header.c
515   src/instr/instr_paje_types.c
516   src/instr/instr_paje_values.c
517   src/instr/instr_private.h
518   src/instr/instr_resource_utilization.c
519   )
520
521 set(JEDULE_SRC
522   include/instr/jedule/jedule_events.h
523   include/instr/jedule/jedule_output.h
524   include/instr/jedule/jedule_platform.h
525   include/instr/jedule/jedule_sd_binding.h
526   src/instr/jedule/jedule_events.c
527   src/instr/jedule/jedule_output.c
528   src/instr/jedule/jedule_platform.c
529   src/instr/jedule/jedule_sd_binding.c
530   )
531
532 set(MC_SRC
533   src/mc/mc_checkpoint.c
534   src/mc/mc_compare.c
535   src/mc/mc_dpor.c
536   src/mc/mc_global.c
537   src/mc/mc_liveness.c
538   src/mc/mc_memory.c
539   src/mc/mc_private.h
540   src/mc/mc_request.c
541   src/mc/mc_state.c
542   src/mc/memory_map.c
543   src/mc/mc_pair.c
544   )
545
546 set(headers_to_install
547   include/simgrid.h
548   include/instr/instr.h
549   include/msg/datatypes.h
550   include/msg/msg.h
551   include/simdag/datatypes.h
552   include/simdag/simdag.h
553   include/simgrid/datatypes.h
554   include/simgrid/modelchecker.h
555   include/simgrid/platf.h
556   include/simgrid/platf_generator.h
557   include/simgrid/plugins.h
558   include/simgrid/simix.h
559   include/smpi/mpi.h
560   include/smpi/smpi.h
561   include/smpi/smpi_cocci.h
562   include/smpi/smpi_main.h
563   include/surf/simgrid_dtd.h
564   include/surf/surf_routing.h
565   include/surf/surfxml_parse.h
566   include/xbt.h
567   include/xbt/RngStream.h
568   include/xbt/asserts.h
569   include/xbt/automaton.h
570   include/xbt/config.h
571   include/xbt/cunit.h
572   include/xbt/dict.h
573   include/xbt/dynar.h
574   include/xbt/ex.h
575   include/xbt/fifo.h
576   include/xbt/function_types.h
577   include/xbt/graph.h
578   include/xbt/graphxml.h
579   include/xbt/graphxml_parse.h
580   include/xbt/hash.h
581   include/xbt/heap.h
582   include/xbt/lib.h
583   include/xbt/log.h
584   include/xbt/mallocator.h
585   include/xbt/matrix.h
586   include/xbt/misc.h
587   include/xbt/mmalloc.h
588   include/xbt/module.h
589   include/xbt/parmap.h
590   include/xbt/peer.h
591   include/xbt/queue.h
592   include/xbt/replay.h
593   include/xbt/set.h
594   include/xbt/setset.h
595   include/xbt/str.h
596   include/xbt/strbuff.h
597   include/xbt/swag.h
598   include/xbt/synchro_core.h
599   include/xbt/sysdep.h
600   include/xbt/virtu.h
601   include/xbt/xbt_os_thread.h
602   )
603 set(source_of_generated_headers
604   include/simgrid_config.h.in
605   include/smpi/mpif.h.in
606   include/smpi/smpif.h.in
607   src/context_sysv_config.h.in)
608
609 ### depend of some variables setted upper
610 # -->CONTEXT_THREADS CONTEXT_UCONTEXT
611 if(${CONTEXT_THREADS}) #pthread
612   set(SURF_SRC
613     ${SURF_SRC}
614     src/simix/smx_context_thread.c
615     src/xbt/xbt_os_thread.c
616     )
617 else() # NOT pthread
618   set(EXTRA_DIST
619     ${EXTRA_DIST}
620     src/simix/smx_context_thread.c
621     src/xbt/xbt_os_thread.c
622     )
623 endif()
624
625 if(${CONTEXT_UCONTEXT}) #ucontext
626   set(SURF_SRC
627     ${SURF_SRC}
628     src/simix/smx_context_sysv.c
629     )
630 else() # NOT ucontext
631   set(EXTRA_DIST
632     ${EXTRA_DIST}
633     src/simix/smx_context_sysv.c
634     )
635 endif()
636
637 # -->HAVE_GTNETS
638 if(HAVE_GTNETS)
639   set(GTNETS_USED
640     ${GTNETS_SRC}
641     )
642 else()
643   set(GTNETS_USED "")
644   set(EXTRA_DIST
645     ${EXTRA_DIST}
646     ${GTNETS_SRC}
647     )
648 endif()
649
650 ### Simgrid Lib sources
651 set(simgrid_sources
652   ${BINDINGS_SRC}
653   ${GTNETS_USED}
654   ${MSG_SRC}
655   ${SIMDAG_SRC}
656   ${SIMGRID_SRC}
657   ${SIMIX_SRC}
658   ${SURF_SRC}
659   ${XBT_SRC}
660   )
661
662 if(${HAVE_JEDULE})
663   set(simgrid_sources
664     ${simgrid_sources}
665     ${JEDULE_SRC}
666     )
667 else()
668   set(EXTRA_DIST
669     ${EXTRA_DIST}
670     ${JEDULE_SRC}
671     )
672 endif()
673
674 if(enable_smpi)
675   set(simgrid_sources
676     ${simgrid_sources}
677     ${SMPI_SRC}
678     )
679 endif()
680
681 if(${HAVE_TRACING})
682   set(simgrid_sources
683     ${simgrid_sources}
684     ${TRACING_SRC}
685     )
686 else()
687   set(EXTRA_DIST
688     ${EXTRA_DIST}
689     ${TRACING_SRC}
690     )
691 endif()
692
693 if(HAVE_MC)
694   set(simgrid_sources
695     ${simgrid_sources}
696     ${MC_SRC}
697     )
698 endif()
699
700 if(HAVE_NS3)
701   set(simgrid_sources
702     ${simgrid_sources}
703     ${NS3_SRC}
704     )
705 endif()
706
707 # WINDOWS
708 if(WIN32)
709   set(simgrid_sources
710     ${simgrid_sources}
711     src/simix/smx_context_thread.c
712     src/xbt/win32_ucontext.c
713     src/xbt/xbt_os_thread.c
714     )
715 endif()
716
717 if(${HAVE_LUA})
718   set(simgrid_sources
719     ${simgrid_sources}
720     ${LUA_SRC}
721     )
722 else()
723   set(EXTRA_DIST
724     ${EXTRA_DIST}
725     ${LUA_SRC}
726     )
727 endif()
728
729 set(DOC_SOURCES
730   doc/Doxyfile.in
731   doc/Layout.xml
732   doc/sg_thread_model.fig
733   doc/simix.fig
734   doc/surf_nutshell.fig
735   doc/triva-graph_configuration.png
736   doc/triva-graph_configuration.svg
737   doc/triva-graph_visualization.png
738   doc/triva-graph_visualization.svg
739   doc/triva-time_interval.png
740   doc/triva-time_interval.svg
741
742   doc/HelloWorld/CMakeLists.txt
743   doc/HelloWorld/HelloWorld.c
744   doc/HelloWorld/README
745
746   doc/doxygen/FAQ.doc
747   doc/doxygen/advanced.doc
748   doc/doxygen/bindings.doc
749   doc/doxygen/contributing.doc
750   doc/doxygen/deployment.doc
751   doc/doxygen/footer.html
752   doc/doxygen/getting_started.doc
753   doc/doxygen/header.html
754   doc/doxygen/help.doc
755   doc/doxygen/index.doc
756   doc/doxygen/inside_autotests.doc
757   doc/doxygen/inside_cmake.doc
758   doc/doxygen/inside_doxygen.doc
759   doc/doxygen/inside_extending.doc
760   doc/doxygen/inside_release.doc
761   doc/doxygen/install.doc
762   doc/doxygen/internals.doc
763   doc/doxygen/introduction.doc
764   doc/doxygen/module-msg.doc
765   doc/doxygen/module-sd.doc
766   doc/doxygen/module-simix.doc
767   doc/doxygen/module-surf.doc
768   doc/doxygen/module-smpi.doc
769   doc/doxygen/module-trace.doc
770   doc/doxygen/module-xbt.doc
771   doc/doxygen/modules.doc
772   doc/doxygen/options.doc
773   doc/doxygen/platform.doc
774   doc/doxygen/pls.doc
775   doc/doxygen/stylesheet.css
776   doc/doxygen/tracing.doc
777   doc/doxygen/use.doc
778
779   doc/msg-tuto-src/deployment0.xml
780   doc/msg-tuto-src/deployment1.xml
781   doc/msg-tuto-src/deployment2.xml
782   doc/msg-tuto-src/deployment3.xml
783   doc/msg-tuto-src/deployment_general.xml
784   doc/msg-tuto-src/masterworker0.c
785   doc/msg-tuto-src/masterworker1.c
786   doc/msg-tuto-src/masterworker2.c
787   doc/msg-tuto-src/masterworker3.c
788   doc/msg-tuto-src/masterworker4.c
789   doc/msg-tuto-src/platforms/cloud.xml
790   doc/msg-tuto-src/platforms/g5k.xml
791   doc/msg-tuto-src/platforms/griffon.xml
792   doc/msg-tuto-src/platforms/peers.xml
793   doc/msg-tuto-src/platforms/platform.xml
794   
795   CITATION.bib
796   )
797
798 set(DOC_FIGS
799   ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules.fig
800   ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules2.fig
801   )
802
803 set(DOC_TOOLS
804   tools/doxygen/fig2dev_postprocessor.pl
805   tools/doxygen/index_create.pl
806   tools/doxygen/xbt_log_extract_hierarchy.pl
807   )
808
809 # these files get copied automatically to the html documentation
810 set(DOC_IMG
811   ${CMAKE_HOME_DIRECTORY}/doc/simgrid.css
812   ${CMAKE_HOME_DIRECTORY}/doc/sc3-description.png
813   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/AS_hierarchy.png
814   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot.jpg
815   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot_thn.jpg
816   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.gif
817   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.icns
818   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.ico
819   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/awstats_logo3.png
820   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/output.goal.pdf
821   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/poster_thumbnail.png
822   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.gif
823   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.png
824   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011_small.png
825   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_win.bmp
826   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_win_2011.bmp
827   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_01.png
828   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_02.png
829   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_03.png
830   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_04.png
831   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_05.png
832   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_06.png
833   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/smpi_simgrid_alltoall_pair_16.png
834   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/smpi_simgrid_alltoall_ring_16.png
835   )
836
837 set(bin_files
838   ${bin_files}
839   src/smpi/smpicc.in
840   src/smpi/smpif2c.in
841   src/smpi/smpiff.in
842   src/smpi/smpif90.in
843   src/smpi/smpirun.in
844   src/smpi/smpitools.sh
845   )
846
847 set(txt_files
848   ${txt_files}
849   AUTHORS
850   COPYING
851   README
852   README.java
853   ChangeLog
854   ChangeLog.SimGrid-java
855   INSTALL
856   LICENSE-LGPL-2.1
857   NEWS
858   TODO
859   configure
860   )
861
862 set(EXAMPLES_CMAKEFILES_TXT
863   examples/java/CMakeLists.txt
864   examples/java/async/CMakeLists.txt
865   examples/java/bittorrent/CMakeLists.txt
866   examples/java/chord/CMakeLists.txt
867   examples/java/cloud/CMakeLists.txt
868   examples/java/commTime/CMakeLists.txt
869   examples/java/io/CMakeLists.txt
870   examples/java/kademlia/CMakeLists.txt
871   examples/java/master_slave_bypass/CMakeLists.txt
872   examples/java/master_slave_kill/CMakeLists.txt
873   examples/java/masterslave/CMakeLists.txt
874   examples/java/migration/CMakeLists.txt
875   examples/java/mutualExclusion/CMakeLists.txt
876   examples/java/pingPong/CMakeLists.txt
877   examples/java/priority/CMakeLists.txt
878   examples/java/startKillTime/CMakeLists.txt
879   examples/java/suspend/CMakeLists.txt
880   examples/java/tracing/CMakeLists.txt
881   examples/lua/CMakeLists.txt
882   examples/msg/CMakeLists.txt
883   examples/msg/actions/CMakeLists.txt
884   examples/msg/bittorrent/CMakeLists.txt
885   examples/msg/chainsend/CMakeLists.txt
886   examples/msg/chord/CMakeLists.txt
887   examples/msg/cloud/CMakeLists.txt
888   examples/msg/energy/e1/CMakeLists.txt
889   examples/msg/energy/e2/CMakeLists.txt
890   examples/msg/energy/e3/CMakeLists.txt
891   examples/msg/gpu/CMakeLists.txt
892   examples/msg/gtnets/CMakeLists.txt
893   examples/msg/icomms/CMakeLists.txt
894   examples/msg/io/CMakeLists.txt
895   examples/msg/kademlia/CMakeLists.txt
896   examples/msg/masterslave/CMakeLists.txt
897   examples/msg/mc/CMakeLists.txt
898   examples/msg/migration/CMakeLists.txt
899   examples/msg/ns3/CMakeLists.txt
900   examples/msg/parallel_task/CMakeLists.txt
901   examples/msg/pastry/CMakeLists.txt
902   examples/msg/pmm/CMakeLists.txt
903   examples/msg/priority/CMakeLists.txt
904   examples/msg/properties/CMakeLists.txt
905   examples/msg/semaphores/CMakeLists.txt
906   examples/msg/sendrecv/CMakeLists.txt
907   examples/msg/start_kill_time/CMakeLists.txt
908   examples/msg/suspend/CMakeLists.txt
909   examples/msg/token_ring/CMakeLists.txt
910   examples/msg/tracing/CMakeLists.txt
911   examples/scala/CMakeLists.txt
912   examples/scala/master_slave_bypass/CMakeLists.txt
913   examples/scala/master_slave_kill/CMakeLists.txt
914   examples/scala/masterslave/CMakeLists.txt
915   examples/simdag/CMakeLists.txt
916   examples/simdag/dax/CMakeLists.txt
917   examples/simdag/dot/CMakeLists.txt
918   examples/simdag/goal/CMakeLists.txt
919   examples/simdag/io/CMakeLists.txt
920   examples/simdag/metaxml/CMakeLists.txt
921   examples/simdag/properties/CMakeLists.txt
922   examples/simdag/scheduling/CMakeLists.txt
923   examples/smpi/CMakeLists.txt
924   examples/smpi/MM/CMakeLists.txt
925   examples/smpi/energy/CMakeLists.txt
926   examples/smpi/energy/f77/CMakeLists.txt
927   examples/smpi/energy/f90/CMakeLists.txt
928   examples/xbt/CMakeLists.txt
929   )
930
931 set(TESHSUITE_CMAKEFILES_TXT
932   teshsuite/msg/CMakeLists.txt
933   teshsuite/msg/storage/CMakeLists.txt
934   teshsuite/msg/trace/CMakeLists.txt
935   teshsuite/simdag/CMakeLists.txt
936   teshsuite/simdag/availability/CMakeLists.txt
937   teshsuite/simdag/network/CMakeLists.txt
938   teshsuite/simdag/network/mxn/CMakeLists.txt
939   teshsuite/simdag/network/p2p/CMakeLists.txt
940   teshsuite/simdag/partask/CMakeLists.txt
941   teshsuite/simdag/platforms/CMakeLists.txt
942   teshsuite/simix/CMakeLists.txt
943   teshsuite/smpi/CMakeLists.txt
944   teshsuite/smpi/mpich3-test/CMakeLists.txt
945   teshsuite/smpi/mpich3-test/attr/CMakeLists.txt
946   teshsuite/smpi/mpich3-test/comm/CMakeLists.txt
947   teshsuite/smpi/mpich3-test/coll/CMakeLists.txt
948   teshsuite/smpi/mpich3-test/datatype/CMakeLists.txt
949   teshsuite/smpi/mpich3-test/group/CMakeLists.txt
950   teshsuite/smpi/mpich3-test/init/CMakeLists.txt
951   teshsuite/smpi/mpich3-test/pt2pt/CMakeLists.txt
952   teshsuite/smpi/mpich3-test/f77/util/CMakeLists.txt
953 #  teshsuite/smpi/mpich3-test/f77/attr/CMakeLists.txt
954   teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt
955   teshsuite/smpi/mpich3-test/f77/comm/CMakeLists.txt
956   teshsuite/smpi/mpich3-test/f77/datatype/CMakeLists.txt
957   teshsuite/smpi/mpich3-test/f77/ext/CMakeLists.txt
958   teshsuite/smpi/mpich3-test/f77/init/CMakeLists.txt
959   teshsuite/smpi/mpich3-test/f77/pt2pt/CMakeLists.txt
960   teshsuite/smpi/mpich3-test/f90/util/CMakeLists.txt
961   teshsuite/smpi/mpich3-test/f90/coll/CMakeLists.txt
962   teshsuite/smpi/mpich3-test/f90/datatype/CMakeLists.txt
963   teshsuite/smpi/mpich3-test/f90/init/CMakeLists.txt
964   teshsuite/smpi/mpich3-test/f90/pt2pt/CMakeLists.txt
965   teshsuite/xbt/CMakeLists.txt
966   )
967
968 set(TOOLS_CMAKEFILES_TXT
969   tools/CMakeLists.txt
970   tools/graphicator/CMakeLists.txt
971   tools/tesh/CMakeLists.txt
972   )
973
974 set(TESTSUITE_CMAKEFILES_TXT
975   testsuite/surf/CMakeLists.txt
976   testsuite/xbt/CMakeLists.txt
977   )
978
979 set(CMAKE_SOURCE_FILES
980   CMakeLists.txt
981   buildtools/Cmake/AddTests.cmake
982   buildtools/Cmake/CTestConfig.cmake
983   buildtools/Cmake/CTestCustom.cmake
984   buildtools/Cmake/CompleteInFiles.cmake
985   buildtools/Cmake/DefinePackages.cmake
986   buildtools/Cmake/Distrib.cmake
987   buildtools/Cmake/Flags.cmake
988   buildtools/Cmake/GenerateDoc.cmake
989   buildtools/Cmake/GenerateDocWin.cmake
990   buildtools/Cmake/MaintainerMode.cmake
991   buildtools/Cmake/MakeExe.cmake
992   buildtools/Cmake/MakeJava.cmake
993   buildtools/Cmake/MakeLib.cmake
994   buildtools/Cmake/MakeLibWin.cmake
995   buildtools/Cmake/Modules/FindF2c.cmake
996   buildtools/Cmake/Modules/FindGFortran.cmake
997   buildtools/Cmake/Modules/FindGTnets.cmake
998   buildtools/Cmake/Modules/FindGraphviz.cmake
999   buildtools/Cmake/Modules/FindLibSigc++.cmake
1000   buildtools/Cmake/Modules/FindLibunwind.cmake
1001   buildtools/Cmake/Modules/FindLua51Simgrid.cmake
1002   buildtools/Cmake/Modules/FindNS3.cmake
1003   buildtools/Cmake/Modules/FindRngStream.cmake
1004   buildtools/Cmake/Modules/FindRubySimgrid.cmake
1005   buildtools/Cmake/Modules/FindScala.cmake
1006   buildtools/Cmake/Modules/FindSimGrid.cmake
1007   buildtools/Cmake/Modules/FindValgrind.cmake
1008   buildtools/Cmake/Option.cmake
1009   buildtools/Cmake/Pipol.cmake
1010   buildtools/Cmake/PrintArgs.cmake
1011   buildtools/Cmake/Scripts/Diff.pm
1012   buildtools/Cmake/Scripts/Makefile.default
1013   buildtools/Cmake/Scripts/SimGrid.packproj
1014   buildtools/Cmake/Scripts/generate_memcheck_tests.pl
1015   buildtools/Cmake/Scripts/generate_new_tests.pl
1016   buildtools/Cmake/Scripts/my_valgrind.pl
1017   buildtools/Cmake/Scripts/postinstall.sh
1018   buildtools/Cmake/Scripts/preinstall.sh
1019   buildtools/Cmake/Scripts/tesh.pl
1020   buildtools/Cmake/Scripts/update_tesh.pl
1021   buildtools/Cmake/Supernovae.cmake
1022   buildtools/Cmake/UnitTesting.cmake
1023   buildtools/Cmake/src/internal_config.h.in
1024   buildtools/Cmake/src/simgrid.nsi.in
1025   buildtools/Cmake/test_prog/prog_AC_CHECK_MCSC.c
1026   buildtools/Cmake/test_prog/prog_gnu_dynlinker.c
1027   buildtools/Cmake/test_prog/prog_gtnets.cpp
1028   buildtools/Cmake/test_prog/prog_mutex_timedlock.c
1029   buildtools/Cmake/test_prog/prog_printf_null.c
1030   buildtools/Cmake/test_prog/prog_sem_init.c
1031   buildtools/Cmake/test_prog/prog_sem_open.c
1032   buildtools/Cmake/test_prog/prog_sem_timedwait.c
1033   buildtools/Cmake/test_prog/prog_snprintf.c
1034   buildtools/Cmake/test_prog/prog_stackgrowth.c
1035   buildtools/Cmake/test_prog/prog_stacksetup.c
1036   buildtools/Cmake/test_prog/prog_thread_storage.c
1037   buildtools/Cmake/test_prog/prog_vsnprintf.c
1038   )
1039
1040 set(PLATFORMS_EXAMPLES
1041   examples/platforms/bypassASroute.xml
1042   examples/platforms/bypassRoute.xml
1043   examples/platforms/cloud.xml
1044   examples/platforms/cluster.xml
1045   examples/platforms/cluster_and_one_host.xml
1046   examples/platforms/cluster_no_backbone.xml
1047   examples/platforms/clusters_routing_full.xml
1048   examples/platforms/conf/gridpp_grid_2004.conf
1049   examples/platforms/conf/gridpp_grid_2004.xml
1050   examples/platforms/conf/lcg_sept2004_grid.conf
1051   examples/platforms/conf/lcg_sept2004_grid.xml
1052   examples/platforms/conf/transform_optorsim_platform.pl
1053   examples/platforms/config.xml
1054   examples/platforms/content/small_content.txt
1055   examples/platforms/content/storage_content.txt
1056   examples/platforms/content/win_storage_content.txt
1057   examples/platforms/data_center.xml
1058   examples/platforms/g5k.xml
1059   examples/platforms/generation_scripts/create_hierarchical_clusters.pl
1060   examples/platforms/generation_scripts/enhancedDTDwithHierarchicalCluster.pl
1061   examples/platforms/generation_scripts/generate_g5k_platform.pl
1062   examples/platforms/generation_scripts/generate_g5k_platform_cabinets.pl
1063   examples/platforms/griffon.xml
1064   examples/platforms/meta_cluster.xml
1065   examples/platforms/multicore_machine.xml
1066   examples/platforms/prop.xml
1067   examples/platforms/routing_cluster.xml
1068   examples/platforms/storage.xml
1069   examples/platforms/syscoord/generate_peer_platform.pl
1070   examples/platforms/syscoord/median_harvard.syscoord
1071   examples/platforms/syscoord/median_harvard.xml
1072   examples/platforms/syscoord/median_meridian.syscoord
1073   examples/platforms/syscoord/median_meridian.xml
1074   examples/platforms/syscoord/median_p2psim.syscoord
1075   examples/platforms/syscoord/median_p2psim.xml
1076   examples/platforms/two_peers.xml
1077   examples/platforms/vivaldi.xml
1078   )
1079
1080 set(generated_src_files
1081   src/xbt/automaton/automaton_lexer.yy.c
1082   src/xbt/automaton/parserPromela.tab.cacc
1083   src/xbt/automaton/parserPromela.tab.hacc
1084   )
1085
1086 foreach(file ${generated_src_files})
1087   set_source_files_properties(${file} PROPERTIES GENERATED true)
1088 endforeach(file ${generated_src_files})