Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Only test python bindings if they are enabled
[simgrid.git] / examples / python / CMakeLists.txt
1 foreach(example 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=${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                                ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh)
11   endif()
12 endforeach()
13
14 set(tesh_files    ${tesh_files}    PARENT_SCOPE)
15 set(examples_src  ${examples_src}  PARENT_SCOPE)