Logo AND Algorithmique Numérique Distribuée

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