Logo AND Algorithmique Numérique Distribuée

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