Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into adrien
[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                 comm-wait comm-waitall comm-waitany
3                 exec-async exec-basic exec-dvfs 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_FACTORIES(python-${example} "thread;ucontext;raw;boost"
9                                --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
10                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
11                                --setenv pythoncmd=${PYTHON_EXECUTABLE}
12                                --setenv LD_LIBRARY_PATH=${TESH_LIBRARY_PATH}
13                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
14                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
15                                ${example}.tesh)
16   endif()
17 endforeach()
18
19 set(examples_src  ${examples_src}                                                      PARENT_SCOPE)
20 set(tesh_files    ${tesh_files}   examples/python/actor-create/actor-create_d.xml
21                                   examples/python/actor-lifetime/actor-lifetime_d.xml
22                                   examples/python/comm-wait/comm-wait_d.xml
23                                   examples/python/comm-waitall/comm-waitall_d.xml
24                                   examples/python/comm-waitany/comm-waitany_d.xml    PARENT_SCOPE)