Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add ptasks in the Python bindings
[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         app-masterworkers
3         comm-wait comm-waitall comm-waitallfor comm-waitany comm-waitfor comm-failure comm-host2host comm-pingpong
4         comm-ready comm-serialize comm-suspend comm-testany comm-throttling comm-waitallfor comm-waituntil
5         exec-async exec-basic exec-dvfs exec-remote
6         platform-profile platform-failures
7         network-nonlinear clusters-multicpu io-degradation exec-cpu-nonlinear
8         synchro-barrier synchro-mutex synchro-semaphore)
9   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
10   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
11
12   if(enable_python)
13     ADD_TESH(python-${example}
14                                --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
15                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
16                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
17                                --setenv LD_LIBRARY_PATH=${TESH_LIBRARY_PATH}
18                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
19                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
20                                ${example}.tesh)
21   endif()
22 endforeach()
23
24 set(examples_src  ${examples_src}                                                      PARENT_SCOPE)
25 set(tesh_files    ${tesh_files}   examples/python/actor-create/actor-create_d.xml
26                                   examples/python/actor-lifetime/actor-lifetime_d.xml
27                                   examples/python/app-masterworkers/app-masterworkers_d.xml
28                                   examples/python/platform-failures/platform-failures_d.xml
29                                   PARENT_SCOPE)