Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Activate test python-synchro-barrier.
[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
4         exec-async exec-basic exec-dvfs exec-remote
5         platform-profile platform-failures
6         network-nonlinear clusters-multicpu io-degradation exec-cpu-nonlinear
7         synchro-barrier synchro-mutex)
8   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
9   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
10
11   if(enable_python)
12     ADD_TESH(python-${example}
13                                --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
14                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
15                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
16                                --setenv LD_LIBRARY_PATH=${TESH_LIBRARY_PATH}
17                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
18                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
19                                ${example}.tesh)
20   endif()
21 endforeach()
22
23 set(examples_src  ${examples_src}                                                      PARENT_SCOPE)
24 set(tesh_files    ${tesh_files}   examples/python/actor-create/actor-create_d.xml
25                                   examples/python/actor-lifetime/actor-lifetime_d.xml
26                                   examples/python/app-masterworkers/app-masterworkers_d.xml
27                                   examples/python/platform-failures/platform-failures_d.xml
28                                   PARENT_SCOPE)