Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / examples / python / CMakeLists.txt
1 foreach(example actor-create actor-daemon actor-join actor-kill actor-migrate actor-suspend actor-yield actor-lifetime
2         activityset-testany activityset-waitall activityset-waitallfor activityset-waitany
3         app-masterworkers
4         comm-wait comm-failure comm-host2host comm-pingpong
5         comm-ready comm-suspend comm-throttling comm-waituntil
6         exec-async exec-basic exec-dvfs exec-remote exec-ptask
7         task-io task-simple task-switch-host task-variable-load
8         platform-comm-serialize platform-profile platform-failures
9         plugin-host-load
10         network-nonlinear clusters-multicpu io-degradation exec-cpu-nonlinear
11         synchro-barrier synchro-mutex synchro-semaphore)
12   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
13   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
14
15   if(enable_python)
16     ADD_TESH(python-${example}
17                                --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
18                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
19                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
20                                --setenv LD_LIBRARY_PATH=${TESH_LIBRARY_PATH}
21                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
22                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
23                                ${example}.tesh)
24   endif()
25 endforeach()
26
27 set(examples_src  ${examples_src}                                                      PARENT_SCOPE)
28 set(tesh_files    ${tesh_files}   examples/python/actor-create/actor-create_d.xml
29                                   examples/python/actor-lifetime/actor-lifetime_d.xml
30                                   examples/python/app-masterworkers/app-masterworkers_d.xml
31                                   examples/python/platform-failures/platform-failures_d.xml
32                                   PARENT_SCOPE)