Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge remote-tracking branch 'github/master'
[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                 exec-basic)
3   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
4   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
5
6   if(enable_python)
7     ADD_TESH(python-${example} --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
8                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
9                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
10                                --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
11                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
12                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
13                                ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh)
14   endif()
15 endforeach()
16
17 set(tesh_files    examples/python/actor-create/actor-create_d.xml
18                   examples/python/actor-lifetime/actor-lifetime_d.xml
19                   examples/python/actor-lifetime/actor-lifetime.py     # example broken so far
20                   examples/python/actor-lifetime/actor-lifetime.tesh
21                   ${tesh_files}    PARENT_SCOPE)
22 set(examples_src  ${examples_src}  PARENT_SCOPE)