Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Really tiny optimization when the communication is failed already
[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-waitany
4                 exec-async exec-basic exec-dvfs exec-remote
5                 network-nonlinear clusters-multicpu io-degradation exec-cpu-nonlinear)
6   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
7   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
8
9   if(enable_python)
10     ADD_TESH(python-${example}
11                                --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
12                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
13                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
14                                --setenv LD_LIBRARY_PATH=${TESH_LIBRARY_PATH}
15                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
16                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
17                                ${example}.tesh)
18   endif()
19 endforeach()
20
21 set(examples_src  ${examples_src}                                                      PARENT_SCOPE)
22 set(tesh_files    ${tesh_files}   examples/python/actor-create/actor-create_d.xml
23                                   examples/python/actor-lifetime/actor-lifetime_d.xml
24                                   examples/python/app-masterworkers/app-masterworkers_d.xml  PARENT_SCOPE)