Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix make distcheck + reindent
[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                 async-wait async-waitall async-waitany
3                 exec-basic exec-async exec-remote)
4   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
5   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
6
7   if(enable_python)
8     ADD_TESH(python-${example} --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
9                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
10                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
11                                --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
12                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
13                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
14                                ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh)
15   endif()
16 endforeach()
17
18 set(tesh_files    examples/python/actor-create/actor-create_d.xml
19                   examples/python/actor-lifetime/actor-lifetime_d.xml
20                   examples/python/actor-lifetime/actor-lifetime.py     # example broken so far
21                   examples/python/actor-lifetime/actor-lifetime.tesh
22                   examples/python/async-wait/async-wait_d.xml
23                   examples/python/async-waitall/async-waitall_d.xml
24                   examples/python/async-waitany/async-waitany_d.xml
25                   ${tesh_files}    PARENT_SCOPE)
26 set(examples_src  ${examples_src}  PARENT_SCOPE)