Logo AND Algorithmique Numérique Distribuée

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