Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
couple cleanups
[simgrid.git] / tools / cmake / DefinePackages.cmake
1 ### define source packages
2
3 set(EXTRA_DIST
4   src/bindings/java/MANIFEST.in
5   src/include/instr/instr_interface.h
6   src/include/mc/datatypes.h
7   src/include/mc/mc.h
8   src/mc/mc_mmu.h
9   src/mc/PageStore.hpp
10   src/mc/mc_record.h
11   src/include/simgrid/sg_config.h
12   src/include/smpi/smpi_interface.h
13   src/include/surf/datatypes.h
14   src/include/surf/maxmin.h
15   src/include/surf/surf.h
16   src/msg/msg_private.h
17   src/simdag/dax.dtd
18   src/simdag/dax_dtd.c
19   src/simdag/dax_dtd.h
20   src/simdag/simdag_private.h
21   src/simix/simcalls.in
22   src/simix/simcalls.py
23   src/simix/popping_private.h
24   src/simix/popping_bodies.cpp
25   src/simix/popping_generated.cpp
26   src/simix/popping_enum.h
27   src/simix/popping_accessors.h
28   src/simix/smx_host_private.h
29   src/simix/smx_io_private.h
30   src/simix/smx_network_private.h
31   src/simix/smx_private.h
32   src/simix/smx_private.hpp
33   src/simix/smx_process_private.h
34   src/simix/smx_synchro_private.h
35   src/smpi/README
36   src/smpi/colls/coll_tuned_topo.h
37   src/smpi/colls/colls.h
38   src/smpi/colls/colls_private.h
39   src/smpi/colls/smpi_mvapich2_selector_stampede.h
40   src/smpi/private.h
41   src/smpi/smpi_mpi_dt_private.h
42   src/surf/cpu_cas01.hpp
43   src/surf/cpu_interface.hpp
44   src/surf/cpu_ti.hpp
45   src/surf/maxmin_private.hpp
46   src/surf/network_cm02.hpp
47   src/surf/network_constant.hpp
48   src/surf/network_interface.hpp
49   src/surf/network_ns3.hpp
50   src/surf/network_smpi.hpp
51   src/surf/network_ib.hpp
52   src/surf/ns3/ns3_interface.h
53   src/surf/ns3/ns3_simulator.h
54   src/surf/plugins/energy.hpp
55   src/surf/xml/simgrid.dtd
56   src/surf/xml/simgrid_dtd.h
57   src/surf/xml/simgrid_dtd.c
58   src/surf/xml/surfxml_sax_cb.cpp
59
60   src/surf/AsImpl.hpp
61   src/surf/AsCluster.hpp
62   src/surf/AsClusterFatTree.hpp
63   src/surf/AsClusterTorus.hpp
64   src/surf/AsDijkstra.hpp
65   src/surf/AsFloyd.hpp
66   src/surf/AsFull.hpp
67   src/surf/AsRoutedGraph.hpp
68   src/surf/AsNone.hpp
69   src/surf/AsVivaldi.hpp
70
71   src/surf/storage_interface.hpp
72   src/surf/storage_n11.hpp
73   src/surf/surf_interface.hpp
74   src/surf/surf_private.h
75   src/surf/surf_routing.hpp
76   src/surf/vm_hl13.hpp
77   src/surf/PropertyHolder.hpp
78   src/surf/virtual_machine.hpp
79   src/surf/host_clm03.hpp
80   src/surf/HostImpl.hpp
81   src/surf/ptask_L07.hpp
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/dict_private.h
90   src/xbt/ex_interface.h
91   src/xbt/fifo_private.h
92   src/xbt/graph_private.h
93   src/xbt/heap_private.h
94   src/xbt/log_private.h
95   src/xbt/mallocator_private.h
96
97   src/xbt/mmalloc/mfree.c
98   src/xbt/mmalloc/mm.c
99   src/xbt/mmalloc/mm_legacy.c
100   src/xbt/mmalloc/mm_module.c
101   src/xbt/mmalloc/mmalloc.c
102   src/xbt/mmalloc/mmalloc.info
103   src/xbt/mmalloc/mmalloc.texi
104   src/xbt/mmalloc/mmorecore.c
105   src/xbt/mmalloc/mmprivate.h
106   src/xbt/mmalloc/mrealloc.c
107   tools/tesh/generate_tesh
108   tools/lualib.patch
109   teshsuite/lua/lua_platforms.tesh
110   examples/smpi/mc/only_send_deterministic.tesh
111   examples/smpi/mc/non_deterministic.tesh
112   )
113
114 set(SMPI_SRC
115   src/smpi/colls/allgather-2dmesh.c
116   src/smpi/colls/allgather-3dmesh.c
117   src/smpi/colls/allgather-GB.c
118   src/smpi/colls/allgather-NTSLR-NB.c
119   src/smpi/colls/allgather-NTSLR.c
120   src/smpi/colls/allgather-SMP-NTS.c
121   src/smpi/colls/allgather-bruck.c
122   src/smpi/colls/allgather-loosely-lr.c
123   src/smpi/colls/allgather-ompi-neighborexchange.c
124   src/smpi/colls/allgather-pair.c
125   src/smpi/colls/allgather-mvapich-smp.c
126   src/smpi/colls/allgather-rdb.c
127   src/smpi/colls/allgather-rhv.c
128   src/smpi/colls/allgather-ring.c
129   src/smpi/colls/allgather-smp-simple.c
130   src/smpi/colls/allgather-spreading-simple.c
131   src/smpi/colls/allgatherv-GB.c
132   src/smpi/colls/allgatherv-mpich-rdb.c
133   src/smpi/colls/allgatherv-mpich-ring.c
134   src/smpi/colls/allgatherv-ompi-bruck.c
135   src/smpi/colls/allgatherv-ompi-neighborexchange.c
136   src/smpi/colls/allgatherv-pair.c
137   src/smpi/colls/allgatherv-ring.c
138   src/smpi/colls/allreduce-lr.c
139   src/smpi/colls/allreduce-ompi-ring-segmented.c
140   src/smpi/colls/allreduce-rab-rdb.c
141   src/smpi/colls/allreduce-rab1.c
142   src/smpi/colls/allreduce-rab2.c
143   src/smpi/colls/allreduce-rdb.c
144   src/smpi/colls/allreduce-redbcast.c
145   src/smpi/colls/allreduce-smp-binomial-pipeline.c
146   src/smpi/colls/allreduce-smp-binomial.c
147   src/smpi/colls/allreduce-smp-rdb.c
148   src/smpi/colls/allreduce-smp-rsag-lr.c
149   src/smpi/colls/allreduce-smp-rsag-rab.c
150   src/smpi/colls/allreduce-smp-rsag.c
151   src/smpi/colls/allreduce-mvapich-rs.c
152   src/smpi/colls/allreduce-mvapich-two-level.c
153   src/smpi/colls/alltoall-2dmesh.c
154   src/smpi/colls/alltoall-3dmesh.c
155 #  src/smpi/colls/alltoall-bruck.c
156   src/smpi/colls/alltoall-pair-light-barrier.c
157   src/smpi/colls/alltoall-pair-mpi-barrier.c
158   src/smpi/colls/alltoall-pair-one-barrier.c
159   src/smpi/colls/alltoall-pair.c
160   src/smpi/colls/alltoall-rdb.c
161   src/smpi/colls/alltoall-ring-light-barrier.c
162   src/smpi/colls/alltoall-ring-mpi-barrier.c
163   src/smpi/colls/alltoall-ring-one-barrier.c
164   src/smpi/colls/alltoall-ring.c
165   src/smpi/colls/alltoall-mvapich-scatter-dest.c
166   src/smpi/colls/alltoallv-bruck.c
167   src/smpi/colls/alltoallv-ompi-basic-linear.c
168   src/smpi/colls/alltoallv-pair-light-barrier.c
169   src/smpi/colls/alltoallv-pair-mpi-barrier.c
170   src/smpi/colls/alltoallv-pair-one-barrier.c
171   src/smpi/colls/alltoallv-pair.c
172   src/smpi/colls/alltoallv-ring-light-barrier.c
173   src/smpi/colls/alltoallv-ring-mpi-barrier.c
174   src/smpi/colls/alltoallv-ring-one-barrier.c
175   src/smpi/colls/alltoallv-ring.c
176   src/smpi/colls/barrier-ompi.c
177   src/smpi/colls/barrier-mvapich2-pair.c
178   src/smpi/colls/bcast-NTSB.c
179   src/smpi/colls/bcast-NTSL-Isend.c
180   src/smpi/colls/bcast-NTSL.c
181   src/smpi/colls/bcast-SMP-binary.c
182   src/smpi/colls/bcast-SMP-binomial.c
183   src/smpi/colls/bcast-SMP-linear.c
184   src/smpi/colls/bcast-arrival-pattern-aware-wait.c
185   src/smpi/colls/bcast-arrival-pattern-aware.c
186   src/smpi/colls/bcast-arrival-scatter.c
187   src/smpi/colls/bcast-binomial-tree.c
188   src/smpi/colls/bcast-flattree-pipeline.c
189   src/smpi/colls/bcast-flattree.c
190   src/smpi/colls/bcast-ompi-pipeline.c
191   src/smpi/colls/bcast-ompi-split-bintree.c
192   src/smpi/colls/bcast-mvapich-smp.c
193   src/smpi/colls/bcast-scatter-LR-allgather.c
194   src/smpi/colls/bcast-scatter-rdb-allgather.c
195   src/smpi/colls/coll_tuned_topo.c
196   src/smpi/colls/colls_global.c
197   src/smpi/colls/gather-ompi.c
198   src/smpi/colls/gather-mvapich.c
199   src/smpi/colls/reduce-NTSL.c
200   src/smpi/colls/reduce-arrival-pattern-aware.c
201   src/smpi/colls/reduce-binomial.c
202   src/smpi/colls/reduce-flat-tree.c
203   src/smpi/colls/reduce-ompi.c
204   src/smpi/colls/reduce-scatter-gather.c
205   src/smpi/colls/reduce_scatter-mpich.c
206   src/smpi/colls/reduce_scatter-ompi.c
207   src/smpi/colls/reduce-mvapich-knomial.c
208   src/smpi/colls/reduce-mvapich-two-level.c
209   src/smpi/colls/reduce-rab.c
210   src/smpi/colls/scatter-ompi.c
211   src/smpi/colls/scatter-mvapich-two-level.c
212   src/smpi/colls/smpi_automatic_selector.c
213   src/smpi/colls/smpi_mpich_selector.c
214   src/smpi/colls/smpi_intel_mpi_selector.c
215   src/smpi/colls/smpi_openmpi_selector.c
216   src/smpi/colls/smpi_mvapich2_selector.c
217   src/smpi/instr_smpi.cpp
218   src/smpi/smpi_base.cpp
219   src/smpi/smpi_bench.cpp
220   src/smpi/smpi_memory.cpp
221   src/smpi/smpi_c99.cpp
222   src/smpi/smpi_coll.cpp
223   src/smpi/smpi_comm.cpp
224   src/smpi/smpi_deployment.cpp
225   src/smpi/smpi_dvfs.cpp
226   src/smpi/smpi_global.cpp
227   src/smpi/smpi_group.cpp
228   src/smpi/smpi_mpi.cpp
229   src/smpi/smpi_mpi_dt.cpp
230   src/smpi/smpi_pmpi.cpp
231   src/smpi/smpi_replay.cpp
232   src/smpi/smpi_rma.cpp
233   src/smpi/smpi_topo.cpp
234   src/smpi/smpi_f77.cpp
235   )
236
237 set(XBT_SRC
238   src/xbt/RngStream.c
239   src/xbt/automaton/automaton.c
240   src/xbt/automaton/automatonparse_promela.c
241   src/xbt/config.cpp
242   src/xbt/cunit.c
243   src/xbt/dict.c
244   src/xbt/dict_cursor.c
245   src/xbt/dict_elm.c
246   src/xbt/dynar.c
247   src/xbt/ex.c
248   src/xbt/fifo.c
249   src/xbt/graph.c
250   src/xbt/heap.c
251   src/xbt/lib.c
252   src/xbt/log.c
253   src/xbt/mallocator.c
254   src/xbt/memory_map.cpp
255   src/xbt/memory_map.hpp
256   src/xbt/parmap.cpp
257   src/xbt/snprintf.c
258   src/xbt/string.cpp
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_file.c
266   src/xbt/xbt_os_synchro.c
267   src/xbt/xbt_os_time.c
268   src/xbt/xbt_replay.c
269   src/xbt/xbt_str.c
270   src/xbt/xbt_strbuff.c
271   src/xbt/xbt_virtu.c
272   src/xbt_modinter.h
273   )
274
275 if(HAVE_MMALLOC)
276   set(XBT_SRC ${XBT_SRC}  src/xbt/mmalloc/mm.c )
277 endif()
278
279 set(NS3_SRC  src/surf/network_ns3.cpp
280              src/surf/ns3/ns3_simulator.cc )
281
282 set(SURF_SRC
283   src/surf/AsImpl.cpp
284   src/surf/AsCluster.cpp
285   src/surf/AsClusterFatTree.cpp
286   src/surf/AsClusterTorus.cpp
287   src/surf/AsDijkstra.cpp
288   src/surf/AsFloyd.cpp
289   src/surf/AsFull.cpp
290   src/surf/AsRoutedGraph.cpp
291   src/surf/AsNone.cpp
292   src/surf/AsVivaldi.cpp
293   
294   src/surf/cpu_cas01.cpp
295   src/surf/cpu_interface.cpp
296   src/surf/cpu_ti.cpp
297   src/surf/fair_bottleneck.cpp
298   src/surf/instr_routing.cpp
299   src/surf/instr_surf.cpp
300   src/surf/lagrange.cpp
301   src/surf/maxmin.cpp
302   src/surf/network_cm02.cpp
303   src/surf/network_constant.cpp
304   src/surf/network_interface.cpp
305   src/surf/network_smpi.cpp
306   src/surf/network_ib.cpp
307   src/surf/plugins/energy.cpp
308   src/surf/PropertyHolder.cpp
309   src/surf/sg_platf.cpp
310   src/surf/storage_interface.cpp
311   src/surf/storage_n11.cpp
312   src/surf/surf_c_bindings.cpp
313   src/surf/surf_interface.cpp
314   src/surf/surf_routing.cpp
315   src/surf/xml/platf.hpp
316   src/surf/xml/platf_private.hpp
317   src/surf/xml/surfxml_sax_cb.cpp
318   src/surf/xml/surfxml_parseplatf.cpp
319   src/surf/trace_mgr.hpp
320   src/surf/trace_mgr.cpp
321   src/surf/vm_hl13.cpp
322   src/surf/virtual_machine.cpp
323   src/surf/host_clm03.cpp
324   src/surf/HostImpl.cpp
325   src/surf/ptask_L07.cpp
326   )
327
328 set(SIMIX_GENERATED_SRC   src/simix/popping_generated.cpp  )
329 set(SIMIX_SRC
330   src/simix/libsmx.cpp
331   src/simix/smx_context.cpp
332   src/simix/Context.cpp
333   src/simix/RawContext.cpp
334   src/simix/smx_deployment.cpp
335   src/simix/smx_environment.cpp
336   src/simix/smx_global.cpp
337   src/simix/smx_host.cpp
338   src/simix/smx_io.cpp
339   src/simix/smx_network.cpp
340   src/simix/smx_process.cpp
341   src/simix/smx_synchro.cpp
342   src/simix/smx_vm.cpp
343   src/simix/popping.cpp
344
345   ${SIMIX_GENERATED_SRC}
346   )
347
348 # Boost context may not be available
349 if (HAVE_BOOST_CONTEXTS)
350   set(SIMIX_SRC
351       ${SIMIX_SRC}
352       src/simix/BoostContext.hpp
353       src/simix/BoostContext.cpp)
354 else()
355   set(EXTRA_DIST
356       ${EXTRA_DIST}
357       src/simix/BoostContext.hpp
358       src/simix/BoostContext.cpp)
359 endif()
360
361 set(S4U_SRC
362   src/s4u/s4u_actor.cpp
363   src/s4u/s4u_as.cpp
364   src/s4u/s4u_async.cpp
365   src/s4u/s4u_comm.cpp
366   src/s4u/s4u_engine.cpp  
367   src/s4u/s4u_file.cpp  
368   src/s4u/s4u_host.cpp  
369   src/s4u/s4u_mailbox.cpp
370   src/s4u/s4u_storage.cpp
371 )
372
373 set(SIMGRID_SRC
374   src/simgrid/sg_config.cpp
375   src/simgrid/host.cpp
376   src/simgrid/util.hpp
377   )
378
379 set(MSG_SRC
380   src/msg/instr_msg_process.cpp
381   src/msg/instr_msg_task.cpp
382   src/msg/instr_msg_vm.cpp
383   src/msg/msg_actions.cpp
384   src/msg/msg_deployment.cpp
385   src/msg/msg_environment.cpp
386   src/msg/msg_global.cpp
387   src/msg/msg_gos.cpp
388   src/msg/msg_host.cpp
389   src/msg/msg_io.cpp
390   src/msg/msg_mailbox.cpp
391   src/msg/msg_process.cpp
392   src/msg/msg_synchro.cpp
393   src/msg/msg_task.cpp
394   src/msg/msg_vm.cpp
395   )
396
397 set(SIMDAG_SRC
398   src/simdag/sd_daxloader.cpp
399   src/simdag/sd_global.cpp
400   src/simdag/sd_task.cpp
401   src/simdag/sd_workstation.cpp
402   )
403 if(HAVE_GRAPHVIZ)
404   set(SIMDAG_SRC    ${SIMDAG_SRC} src/simdag/sd_dotloader.cpp)
405 else()
406   set(EXTRA_DIST    ${EXTRA_DIST} src/simdag/sd_dotloader.cpp)
407 endif()
408
409 set(BINDINGS_SRC
410   src/bindings/lua/lua_private.h
411   src/bindings/lua/lua_utils.h
412   src/bindings/lua/simgrid_lua.h
413   )
414
415 set(JMSG_C_SRC
416   src/bindings/java/jmsg.cpp
417   src/bindings/java/jmsg.h
418   src/bindings/java/jmsg_as.cpp
419   src/bindings/java/jmsg_as.h
420   src/bindings/java/jmsg_comm.cpp
421   src/bindings/java/jmsg_comm.h
422   src/bindings/java/jmsg_file.cpp
423   src/bindings/java/jmsg_file.h
424   src/bindings/java/jmsg_host.cpp
425   src/bindings/java/jmsg_host.h
426   src/bindings/java/jmsg_process.cpp
427   src/bindings/java/jmsg_process.h
428   src/bindings/java/jmsg_rngstream.cpp
429   src/bindings/java/jmsg_rngstream.h
430   src/bindings/java/jmsg_synchro.cpp
431   src/bindings/java/jmsg_synchro.h
432   src/bindings/java/jmsg_task.cpp
433   src/bindings/java/jmsg_task.h
434   src/bindings/java/jmsg_vm.cpp
435   src/bindings/java/jmsg_vm.h
436   src/bindings/java/jxbt_utilities.cpp
437   src/bindings/java/jxbt_utilities.h
438   src/bindings/java/JavaContext.cpp
439   src/bindings/java/JavaContext.hpp
440   src/bindings/java/jmsg_storage.cpp
441   src/bindings/java/jmsg_storage.h
442 )
443
444 set(JMSG_JAVA_SRC
445   src/bindings/java/org/simgrid/NativeLib.java
446   src/bindings/java/org/simgrid/msg/As.java
447   src/bindings/java/org/simgrid/msg/Comm.java
448   src/bindings/java/org/simgrid/msg/File.java
449   src/bindings/java/org/simgrid/msg/Host.java
450   src/bindings/java/org/simgrid/msg/HostFailureException.java
451   src/bindings/java/org/simgrid/msg/HostNotFoundException.java
452   src/bindings/java/org/simgrid/msg/JniException.java
453   src/bindings/java/org/simgrid/msg/Msg.java
454   src/bindings/java/org/simgrid/msg/MsgException.java
455   src/bindings/java/org/simgrid/msg/Mutex.java
456   src/bindings/java/org/simgrid/msg/NativeException.java
457   src/bindings/java/org/simgrid/msg/Process.java
458   src/bindings/java/org/simgrid/msg/ProcessKilledError.java
459   src/bindings/java/org/simgrid/msg/ProcessNotFoundException.java
460   src/bindings/java/org/simgrid/msg/RngStream.java
461   src/bindings/java/org/simgrid/msg/Semaphore.java
462   src/bindings/java/org/simgrid/msg/Storage.java
463   src/bindings/java/org/simgrid/msg/StorageNotFoundException.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.cpp
473   src/bindings/java/jtrace.h
474 )
475
476 set(JTRACE_JAVA_SRC src/bindings/java/org/simgrid/trace/Trace.java)
477
478 list(APPEND JMSG_C_SRC ${JTRACE_C_SRC})
479 list(APPEND JMSG_JAVA_SRC ${JTRACE_JAVA_SRC})
480
481 set(LUA_SRC
482   src/bindings/lua/lua_host.cpp
483   src/bindings/lua/lua_platf.cpp
484   src/bindings/lua/lua_debug.cpp
485   src/bindings/lua/simgrid_lua.cpp
486   )
487
488 set(TRACING_SRC
489   src/instr/instr_TI_trace.cpp
490   src/instr/instr_config.cpp
491   src/instr/instr_interface.cpp
492   src/instr/instr_paje_containers.cpp
493   src/instr/instr_paje_header.cpp
494   src/instr/instr_paje_trace.cpp
495   src/instr/instr_paje_types.cpp
496   src/instr/instr_paje_values.cpp
497   src/instr/instr_private.h
498   src/instr/instr_resource_utilization.cpp
499   src/instr/instr_trace.cpp
500   )
501
502 set(JEDULE_SRC
503   include/simgrid/jedule/jedule_events.h
504   include/simgrid/jedule/jedule_output.h
505   include/simgrid/jedule/jedule_platform.h
506   include/simgrid/jedule/jedule_sd_binding.h
507   src/instr/jedule/jedule_events.cpp
508   src/instr/jedule/jedule_output.cpp
509   src/instr/jedule/jedule_platform.cpp
510   src/instr/jedule/jedule_sd_binding.cpp
511   )
512
513 set(MC_SRC_BASE
514   src/mc/mc_base.cpp
515   src/mc/mc_base.h
516   src/mc/mc_record.h
517   src/mc/mc_replay.h
518   src/mc/mc_record.cpp
519   src/mc/mc_config.cpp
520   src/mc/mc_global.cpp
521   )
522
523 set(MC_SRC
524   src/mc/RemotePtr.hpp
525   src/mc/AddressSpace.hpp
526   src/mc/AddressSpace.cpp
527   src/mc/Channel.cpp
528   src/mc/Channel.hpp
529   src/mc/Checker.cpp
530   src/mc/Checker.hpp
531   src/mc/Client.cpp
532   src/mc/Client.hpp
533   src/mc/CommunicationDeterminismChecker.cpp
534   src/mc/CommunicationDeterminismChecker.hpp
535   src/mc/Frame.hpp
536   src/mc/Frame.cpp
537   src/mc/ModelChecker.hpp
538   src/mc/ModelChecker.cpp
539   src/mc/ObjectInformation.hpp
540   src/mc/ObjectInformation.cpp
541   src/mc/PageStore.hpp
542   src/mc/PageStore.cpp
543   src/mc/SafetyChecker.cpp
544   src/mc/SafetyChecker.hpp
545   src/mc/ChunkedData.hpp
546   src/mc/ChunkedData.cpp
547   src/mc/RegionSnapshot.cpp
548   src/mc/RegionSnapshot.hpp
549   src/mc/Type.hpp
550   src/mc/Variable.cpp
551   src/mc/Variable.hpp
552   src/mc/mc_forward.hpp
553   src/mc/Process.hpp
554   src/mc/Process.cpp
555   src/mc/Session.cpp
556   src/mc/Session.hpp
557   src/mc/mc_unw.h
558   src/mc/mc_unw.cpp
559   src/mc/mc_unw_vmread.cpp
560   src/mc/mc_checkpoint.cpp
561   src/mc/mc_snapshot.h
562   src/mc/mc_snapshot.cpp
563   src/mc/mc_page_snapshot.cpp
564   src/mc/mc_comm_pattern.h
565   src/mc/mc_comm_pattern.cpp
566   src/mc/mc_compare.cpp
567   src/mc/mc_diff.cpp
568   src/mc/mc_dwarf.hpp
569   src/mc/mc_dwarf.cpp
570   src/mc/mc_dwarf_attrnames.cpp
571   src/mc/DwarfExpression.hpp
572   src/mc/DwarfExpression.cpp
573   src/mc/mc_dwarf_tagnames.cpp
574   src/mc/mc_hash.hpp
575   src/mc/mc_hash.cpp
576   src/mc/mc_ignore.h
577   src/mc/mc_mmalloc.h
578   src/mc/LivenessChecker.hpp
579   src/mc/LocationList.hpp
580   src/mc/malloc.hpp
581   src/mc/LocationList.cpp
582   src/mc/LivenessChecker.cpp
583   src/mc/mc_record.cpp
584   src/mc/mc_member.cpp
585   src/mc/mc_memory.cpp
586   src/mc/mc_private.h
587   src/mc/mc_request.h
588   src/mc/mc_request.cpp
589   src/mc/mc_safety.h
590   src/mc/mc_state.h
591   src/mc/mc_state.cpp
592   src/mc/VisitedState.cpp
593   src/mc/VisitedState.hpp
594   src/mc/mc_client_api.cpp
595   src/mc/mc_protocol.h
596   src/mc/mc_protocol.cpp
597   src/mc/mc_smx.h
598   src/mc/mc_smx.cpp
599   src/mc/mc_xbt.hpp
600   src/mc/mc_xbt.cpp
601   src/mc/mc_exit.h
602   src/mc/Transition.hpp
603   )
604
605 set(MC_SIMGRID_MC_SRC  src/mc/simgrid_mc.cpp)
606
607 set(headers_to_install
608   include/msg/msg.h
609   include/msg/datatypes.h
610   include/simdag/simdag.h
611   include/simdag/datatypes.h
612   
613   include/simgrid/plugins/energy.h
614   include/simgrid/instr.h
615   include/simgrid/msg.h
616   include/simgrid/simdag.h
617   include/simgrid.h
618   include/simgrid/datatypes.h
619   include/simgrid/modelchecker.h
620   include/simgrid/forward.h
621   include/simgrid/simix.h
622   include/simgrid/simix.hpp
623   include/simgrid/host.h
624   include/simgrid/link.h
625   include/simgrid/s4u/forward.hpp
626   include/simgrid/s4u/actor.hpp
627   include/simgrid/s4u/As.hpp
628   include/simgrid/s4u/async.hpp
629   include/simgrid/s4u/comm.hpp
630   include/simgrid/s4u/engine.hpp  
631   include/simgrid/s4u/file.hpp  
632   include/simgrid/s4u/host.hpp  
633   include/simgrid/s4u/mailbox.hpp  
634   include/simgrid/s4u/storage.hpp  
635   include/simgrid/s4u.h
636   include/simgrid/plugins/energy.h
637   include/smpi/mpi.h
638   include/smpi/smpi.h
639   include/smpi/smpi_main.h
640   include/surf/surf_routing.h
641   include/xbt.h
642   include/xbt/RngStream.h
643   include/xbt/asserts.h
644   include/xbt/automaton.h
645   include/xbt/automaton.hpp
646   include/xbt/base.h
647   include/xbt/config.h
648   include/xbt/config.hpp
649   include/xbt/cunit.h
650   include/xbt/dict.h
651   include/xbt/string.hpp
652   include/xbt/signal.hpp
653   include/xbt/dynar.h
654   include/xbt/dynar.hpp
655   include/xbt/ex.h
656   include/xbt/fifo.h
657   include/xbt/file.h
658   include/xbt/function_types.h
659   include/xbt/graph.h
660   include/xbt/heap.h
661   include/xbt/lib.h
662   include/xbt/Extendable.hpp
663   include/xbt/log.h
664   include/xbt/mallocator.h
665   include/xbt/matrix.h
666   include/xbt/memory.hpp
667   include/xbt/misc.h
668   include/xbt/mmalloc.h
669   include/xbt/module.h
670   include/xbt/parmap.h
671   include/xbt/range.hpp
672   include/xbt/replay.h
673   include/xbt/str.h
674   include/xbt/strbuff.h
675   include/xbt/swag.h
676   include/xbt/synchro_core.h
677   include/xbt/sysdep.h
678   include/xbt/system_error.hpp
679   include/xbt/virtu.h
680   include/xbt/xbt_os_thread.h
681   include/xbt/xbt_os_time.h
682   )
683 set(source_of_generated_headers
684   include/simgrid_config.h.in
685   include/smpi/mpif.h.in)
686
687 ### depend of some variables setted upper
688 # -->HAVE_THREAD_CONTEXTS HAVE_UCONTEXT_CONTEXTS
689 if(${HAVE_THREAD_CONTEXTS}) #pthread
690   set(SURF_SRC
691     ${SURF_SRC}
692     src/simix/ThreadContext.cpp
693     src/simix/ThreadContext.hpp
694     )
695 else() # NOT pthread
696   set(EXTRA_DIST
697     ${EXTRA_DIST}
698     src/simix/ThreadContext.cpp
699     src/simix/ThreadContext.hpp
700     )
701 endif()
702
703 if(${HAVE_THREAD_CONTEXTS}) #pthread
704   set(SURF_SRC    ${SURF_SRC}   src/xbt/xbt_os_thread.c)
705 else() # NOT pthread
706   set(EXTRA_DIST  ${EXTRA_DIST} src/xbt/xbt_os_thread.c
707     )
708 endif()
709
710 if(${HAVE_UCONTEXT_CONTEXTS}) #ucontext
711   set(SURF_SRC    ${SURF_SRC}   src/simix/UContext.cpp)
712 else() # NOT ucontext
713   set(EXTRA_DIST  ${EXTRA_DIST} src/simix/UContext.cpp)
714 endif()
715
716 ### Simgrid Lib sources
717 set(simgrid_sources
718   ${BINDINGS_SRC}
719   ${MC_SRC_BASE}
720   ${MSG_SRC}
721   ${S4U_SRC}
722   ${SIMDAG_SRC}
723   ${SIMGRID_SRC}
724   ${SIMIX_SRC}
725   ${SURF_SRC}
726   ${TRACING_SRC}
727   ${XBT_SRC}
728   )
729
730 if(${HAVE_JEDULE})  
731   set(simgrid_sources  ${simgrid_sources}  ${JEDULE_SRC})
732 else()
733   set(EXTRA_DIST       ${EXTRA_DIST}       ${JEDULE_SRC})
734 endif()
735
736 if(enable_smpi)
737   set(simgrid_sources  ${simgrid_sources}  ${SMPI_SRC})
738 endif()
739
740 if(HAVE_MC)
741   set(simgrid_sources  ${simgrid_sources}  ${MC_SRC})
742 endif()
743
744 if(HAVE_NS3)
745   set(simgrid_sources  ${simgrid_sources}  ${NS3_SRC})
746 endif()
747
748 # WINDOWS
749 if(WIN32)
750   set(simgrid_sources
751     ${simgrid_sources}
752     src/simix/ThreadContext.cpp
753     src/simix/ThreadContext.hpp
754     src/xbt/xbt_os_thread.c
755     )
756 endif()
757
758 if(HAVE_LUA)
759   set(simgrid_sources  ${simgrid_sources}  ${LUA_SRC})
760 else()
761   set(EXTRA_DIST       ${EXTRA_DIST}       ${LUA_SRC})
762 endif()
763
764 set(DOC_SOURCES
765   doc/Doxyfile.in
766   doc/Layout.xml
767   doc/sg_thread_model.fig
768   doc/simix.fig
769   doc/surf_nutshell.fig
770   doc/surf++.png
771   doc/surf++.pdf
772   doc/surf++.graphml
773   doc/surf++.uml
774   doc/triva-graph_configuration.png
775   doc/triva-graph_configuration.svg
776   doc/triva-graph_visualization.png
777   doc/triva-graph_visualization.svg
778   doc/triva-time_interval.png
779   doc/triva-time_interval.svg
780
781   doc/doxygen/FAQ.doc
782   doc/doxygen/advanced.doc
783   doc/doxygen/bindings.doc
784   doc/doxygen/contributing.doc
785   doc/doxygen/deployment.doc
786   doc/doxygen/footer.html
787   doc/doxygen/getting_started.doc
788   doc/doxygen/getting_started_index.doc
789   doc/doxygen/header.html
790   doc/doxygen/help.doc
791   doc/doxygen/index.doc
792   doc/doxygen/inside.doc
793   doc/doxygen/inside_tests.doc
794   doc/doxygen/inside_cmake.doc
795   doc/doxygen/inside_doxygen.doc
796   doc/doxygen/inside_extending.doc
797   doc/doxygen/inside_release.doc
798   doc/doxygen/install.doc
799   doc/doxygen/tutorial.doc
800   doc/doxygen/module-msg.doc
801   doc/doxygen/module-sd.doc
802   doc/doxygen/module-simix.doc
803   doc/doxygen/module-smpi.doc
804   doc/doxygen/module-surf.doc
805   doc/doxygen/module-trace.doc
806   doc/doxygen/module-xbt.doc
807   doc/doxygen/modules.doc
808   doc/doxygen/options.doc
809   doc/doxygen/platform.doc
810   doc/doxygen/pls.doc
811   doc/doxygen/stylesheet.css
812   doc/doxygen/tracing.doc
813   doc/doxygen/examples.doc
814
815   doc/manpage/smpicc.1
816   doc/manpage/smpicxx.1
817   doc/manpage/smpif90.1
818   doc/manpage/smpiff.1
819   doc/manpage/smpirun.1
820
821   doc/msg-tuto-src/deployment0.xml
822   doc/msg-tuto-src/deployment1.xml
823   doc/msg-tuto-src/deployment2.xml
824   doc/msg-tuto-src/deployment3.xml
825   doc/msg-tuto-src/deployment_general.xml
826   doc/msg-tuto-src/masterworker0.c
827   doc/msg-tuto-src/masterworker1.c
828   doc/msg-tuto-src/masterworker2.c
829   doc/msg-tuto-src/masterworker3.c
830   doc/msg-tuto-src/masterworker4.c
831
832   CITATION.bib
833   )
834
835 set(DOC_FIGS
836   ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules.fig
837   ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules2.fig
838   )
839
840 set(DOC_TOOLS
841   tools/doxygen/fig2dev_postprocessor.pl
842   tools/doxygen/index_create.pl
843   tools/doxygen/xbt_log_extract_hierarchy.pl
844   tools/doxygen/list_routing_models_examples.sh
845   )
846
847 # these files get copied automatically to the html documentation
848 set(DOC_IMG
849   ${CMAKE_HOME_DIRECTORY}/doc/sc3-description.png
850   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/AS_hierarchy.png
851   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot.jpg
852   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot_thn.jpg
853   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.gif
854   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.icns
855   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/SGicon.ico
856   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/awstats_logo3.png
857   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/DiscoveringSimgrid.gif
858   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/output.goal.pdf
859   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/poster_thumbnail.png
860   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/storage_sample_scenario.png
861   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.gif
862   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.png
863   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011_small.png
864   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_win.bmp
865   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_win_2011.bmp
866   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/smpi_simgrid_alltoall_pair_16.png
867   ${CMAKE_HOME_DIRECTORY}/doc/webcruft/smpi_simgrid_alltoall_ring_16.png
868   )
869
870 set(bin_files
871   ${bin_files}
872   src/smpi/smpicc.in
873   src/smpi/smpicxx.in
874   src/smpi/smpiff.in
875   src/smpi/smpif90.in
876   src/smpi/smpirun.in
877   src/smpi/smpitools.sh
878   )
879
880 set(txt_files
881   ${txt_files}
882   AUTHORS
883   COPYING
884   README
885   README.java
886   README.lua
887   ChangeLog
888   INSTALL
889   LICENSE-LGPL-2.1
890   NEWS
891   TODO
892   )
893
894 # The list of cmake build directories is constructed from the following list. 
895 # Add your CMakeLists file here to see your subdir built.
896 set(CMAKEFILES_TXT
897   examples/java/CMakeLists.txt
898   examples/msg/CMakeLists.txt
899     examples/msg/mc/CMakeLists.txt
900   examples/s4u/CMakeLists.txt
901   examples/simdag/CMakeLists.txt
902   examples/smpi/CMakeLists.txt
903     examples/smpi/NAS/CMakeLists.txt
904     examples/smpi/smpi_msg_masterslave/CMakeLists.txt
905     examples/smpi/replay_multiple/CMakeLists.txt
906     examples/smpi/energy/f77/CMakeLists.txt
907     examples/smpi/energy/f90/CMakeLists.txt
908
909   teshsuite/java/CMakeLists.txt
910   teshsuite/mc/CMakeLists.txt
911   teshsuite/msg/CMakeLists.txt
912   teshsuite/simdag/CMakeLists.txt
913   teshsuite/simix/CMakeLists.txt
914   teshsuite/smpi/CMakeLists.txt
915   teshsuite/surf/CMakeLists.txt
916   teshsuite/xbt/CMakeLists.txt
917   
918   teshsuite/smpi/isp/umpire/CMakeLists.txt
919   teshsuite/smpi/mpich3-test/CMakeLists.txt
920   teshsuite/smpi/mpich3-test/attr/CMakeLists.txt
921   teshsuite/smpi/mpich3-test/coll/CMakeLists.txt
922   teshsuite/smpi/mpich3-test/comm/CMakeLists.txt
923   teshsuite/smpi/mpich3-test/datatype/CMakeLists.txt
924 #  teshsuite/smpi/mpich3-test/f77/attr/CMakeLists.txt
925   teshsuite/smpi/mpich3-test/f77/coll/CMakeLists.txt
926   teshsuite/smpi/mpich3-test/f77/info/CMakeLists.txt
927   teshsuite/smpi/mpich3-test/f77/comm/CMakeLists.txt
928   teshsuite/smpi/mpich3-test/f77/datatype/CMakeLists.txt
929   teshsuite/smpi/mpich3-test/f77/ext/CMakeLists.txt
930   teshsuite/smpi/mpich3-test/f77/init/CMakeLists.txt
931   teshsuite/smpi/mpich3-test/f77/pt2pt/CMakeLists.txt
932   teshsuite/smpi/mpich3-test/f77/util/CMakeLists.txt
933   teshsuite/smpi/mpich3-test/f77/topo/CMakeLists.txt
934   teshsuite/smpi/mpich3-test/f77/rma/CMakeLists.txt
935   teshsuite/smpi/mpich3-test/f90/coll/CMakeLists.txt
936   teshsuite/smpi/mpich3-test/f90/datatype/CMakeLists.txt
937   teshsuite/smpi/mpich3-test/f90/info/CMakeLists.txt
938   teshsuite/smpi/mpich3-test/f90/init/CMakeLists.txt
939   teshsuite/smpi/mpich3-test/f90/pt2pt/CMakeLists.txt
940   teshsuite/smpi/mpich3-test/f90/util/CMakeLists.txt
941   teshsuite/smpi/mpich3-test/f90/rma/CMakeLists.txt
942   teshsuite/smpi/mpich3-test/group/CMakeLists.txt
943   teshsuite/smpi/mpich3-test/info/CMakeLists.txt
944   teshsuite/smpi/mpich3-test/init/CMakeLists.txt
945   teshsuite/smpi/mpich3-test/pt2pt/CMakeLists.txt
946   teshsuite/smpi/mpich3-test/topo/CMakeLists.txt
947   teshsuite/smpi/mpich3-test/rma/CMakeLists.txt
948   teshsuite/smpi/mpich3-test/perf/CMakeLists.txt
949   
950   tools/CMakeLists.txt
951   tools/graphicator/CMakeLists.txt
952   tools/tesh/CMakeLists.txt
953   )
954
955 set(CMAKE_SOURCE_FILES
956   CMakeLists.txt
957   tools/cmake/Tests.cmake
958   tools/cmake/CTestConfig.cmake
959   tools/cmake/CTestCustom.cmake
960   tools/cmake/DefinePackages.cmake
961   tools/cmake/Distrib.cmake
962   tools/cmake/GCCFlags.cmake
963   tools/cmake/Documentation.cmake
964   tools/cmake/MaintainerMode.cmake
965   tools/cmake/Java.cmake
966   tools/cmake/MakeLib.cmake
967   tools/cmake/MakeLibWin.cmake
968   tools/cmake/Modules/FindGFortran.cmake
969   tools/cmake/Modules/FindGraphviz.cmake
970   tools/cmake/Modules/FindLibdw.cmake
971   tools/cmake/Modules/FindLibunwind.cmake
972   tools/cmake/Modules/FindLuaSimgrid.cmake
973   tools/cmake/Modules/FindNS3.cmake
974   tools/cmake/Modules/FindRngStream.cmake
975   tools/cmake/Modules/FindSimGrid.cmake
976   tools/cmake/Modules/FindValgrind.cmake
977   tools/cmake/Option.cmake
978   tools/cmake/scripts/IPC/Run.pm
979   tools/cmake/scripts/IPC/Run/Debug.pm
980   tools/cmake/scripts/IPC/Run/IO.pm
981   tools/cmake/scripts/IPC/Run/Timer.pm
982   tools/cmake/scripts/IPC/Run/Win32Helper.pm
983   tools/cmake/scripts/IPC/Run/Win32IO.pm
984   tools/cmake/scripts/IPC/Run/Win32Pump.pm
985   tools/cmake/scripts/Diff.pm
986   tools/cmake/scripts/my_valgrind.pl
987   tools/cmake/scripts/update_tesh.pl
988   tools/cmake/UnitTesting.cmake
989   tools/cmake/src/internal_config.h.in
990   tools/cmake/test_prog/prog_gnu_dynlinker.c
991   tools/cmake/test_prog/prog_makecontext.c
992   tools/cmake/test_prog/prog_mutex_timedlock.c
993   tools/cmake/test_prog/prog_sem_init.c
994   tools/cmake/test_prog/prog_sem_open.c
995   tools/cmake/test_prog/prog_sem_timedwait.c
996   tools/cmake/test_prog/prog_snprintf.c
997   tools/cmake/test_prog/prog_stackgrowth.c
998   tools/cmake/test_prog/prog_stacksetup.c
999   tools/cmake/test_prog/prog_thread_storage.c
1000   tools/cmake/test_prog/prog_vsnprintf.c
1001   tools/cmake/cross-mingw.cmake
1002   tools/stack-cleaner/as
1003   tools/stack-cleaner/cc
1004   tools/stack-cleaner/c++
1005   tools/stack-cleaner/fortran
1006   tools/stack-cleaner/clean-stack-filter
1007   tools/stack-cleaner/compiler-wrapper
1008   tools/stack-cleaner/README
1009   )
1010
1011 set(PLATFORMS_EXAMPLES
1012   examples/platforms/2clusters.xml
1013   examples/platforms/bypassASroute.xml
1014   examples/platforms/bypassRoute.xml
1015   examples/platforms/cloud.xml
1016   examples/platforms/cluster.xml
1017   examples/platforms/cluster_and_one_host.xml
1018   examples/platforms/cluster_prototype.lua
1019   examples/platforms/cluster_no_backbone.xml
1020   examples/platforms/clusters_routing_full.xml
1021   examples/platforms/crosstraffic.xml
1022   examples/platforms/optorsim/gridpp_grid_2004.conf
1023   examples/platforms/optorsim/lcg_sept2004_grid.conf
1024   examples/platforms/optorsim/transform_optorsim_platform.pl
1025   examples/platforms/config.xml
1026   examples/platforms/config_tracing.xml
1027   examples/platforms/trace/bourassa_state.trace
1028   examples/platforms/trace/fafard_state.trace
1029   examples/platforms/trace/faulty_host.trace
1030   examples/platforms/trace/ginette_state.trace
1031   examples/platforms/trace/jupiter_speed.trace
1032   examples/platforms/trace/jupiter_state.trace
1033   examples/platforms/trace/link1_avail.trace
1034   examples/platforms/trace/link3_state.trace
1035   examples/platforms/trace/link4_state.trace
1036   examples/platforms/trace/linkBandwidth7.bw
1037   examples/platforms/trace/trace_A_failure.txt
1038   examples/platforms/trace/trace_A.txt
1039   examples/platforms/trace/trace_B.txt
1040   examples/platforms/data_center.xml
1041   examples/platforms/dogbone.xml
1042   examples/platforms/energy_platform.xml
1043   examples/platforms/faulty_host.xml
1044   examples/platforms/fat_tree_cluster.xml
1045   examples/platforms/g5k.xml
1046   examples/platforms/griffon.xml
1047   examples/platforms/meta_cluster.xml
1048   examples/platforms/multicore_machine.xml
1049   examples/platforms/onelink.xml
1050   examples/platforms/platform.xml
1051   examples/platforms/prop.xml
1052   examples/platforms/routing_cluster.xml
1053   examples/platforms/routing_cluster.lua
1054   examples/platforms/routing_none.xml
1055   examples/platforms/simulacrum_7_hosts.xml
1056   examples/platforms/storage/content/small_content.txt
1057   examples/platforms/storage/content/storage_content.txt
1058   examples/platforms/storage/content/win_storage_content.txt
1059   examples/platforms/storage/remote_io.xml
1060   examples/platforms/storage/storage.xml
1061   examples/platforms/small_platform.xml
1062   examples/platforms/small_platform.lua
1063   examples/platforms/small_platform_fatpipe.xml
1064   examples/platforms/small_platform_one_link_routes.xml
1065   examples/platforms/small_platform_with_failures.xml
1066   examples/platforms/small_platform_with_routers.xml
1067   examples/platforms/syscoord/generate_peer_platform.pl
1068   examples/platforms/syscoord/median_harvard.syscoord
1069   examples/platforms/syscoord/median_meridian.syscoord
1070   examples/platforms/syscoord/median_p2psim.syscoord
1071   examples/platforms/three_multicore_hosts.xml
1072   examples/platforms/torus_cluster.xml
1073   examples/platforms/two_hosts.xml
1074   examples/platforms/two_hosts_platform.xml
1075   examples/platforms/two_hosts_platform_shared.xml
1076   examples/platforms/two_hosts_platform_with_availability.xml
1077   examples/platforms/two_hosts_platform_with_availability_included.xml
1078   examples/platforms/two_peers.xml
1079   examples/platforms/vivaldi.xml
1080   )
1081
1082 set(generated_src_files
1083   src/xbt/automaton/automaton_lexer.yy.c
1084   src/xbt/automaton/parserPromela.tab.cacc
1085   src/xbt/automaton/parserPromela.tab.hacc
1086   )
1087
1088 foreach(file ${generated_src_files})
1089   set_source_files_properties(${file} PROPERTIES GENERATED true)
1090 endforeach(file ${generated_src_files})