Logo AND Algorithmique Numérique Distribuée

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