Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cca4bd32261b023bd9d54bcfe37551f081de50b0
[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 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   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
8   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
9
10   if(enable_python)
11     ADD_TESH(python-${example}
12                                --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
13                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
14                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
15                                --setenv LD_LIBRARY_PATH=${TESH_LIBRARY_PATH}
16                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
17                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
18                                ${example}.tesh)
19   endif()
20 endforeach()
21
22 set(examples_src  ${examples_src}                                                      PARENT_SCOPE)
23 set(tesh_files    ${tesh_files}   examples/python/actor-create/actor-create_d.xml
24                                   examples/python/actor-lifetime/actor-lifetime_d.xml
25                                   examples/python/app-masterworkers/app-masterworkers_d.xml
26                                   examples/python/platform-failures/platform-failures_d.xml
27                                   PARENT_SCOPE)