Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
py: fix out of tree build testing
[simgrid.git] / examples / python / CMakeLists.txt
1 foreach(example actor-create actor-yield exec-basic)
2   set(tesh_files    ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
3   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
4
5   if(enable_python)
6     ADD_TESH(python-${example} --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example}
7                                --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
8                                --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
9                                --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib
10                                --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
11                                ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh)
12   endif()
13 endforeach()
14
15 set(tesh_files    ${tesh_files}    PARENT_SCOPE)
16 set(examples_src  ${examples_src}  PARENT_SCOPE)