X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2fb1fa1697309cad26ab7d472db4f8bfa617e0b4..2b087eb7fda569c229b83497f9bf86730ca64b86:/examples/python/CMakeLists.txt diff --git a/examples/python/CMakeLists.txt b/examples/python/CMakeLists.txt index e38a65f249..367f7954d2 100644 --- a/examples/python/CMakeLists.txt +++ b/examples/python/CMakeLists.txt @@ -1,10 +1,18 @@ -foreach(example exec-basic) +foreach(example actor-create actor-join actor-migrate actor-suspend actor-yield + exec-basic) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh) set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py) - ADD_TESH(python-${example} --setenv srcdir=${example} - --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms - --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib - --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib - ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh) -endforeach() \ No newline at end of file + if(enable_python) + ADD_TESH(python-${example} --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}/${example} + --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms + --setenv LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib + --setenv PYTHONPATH=${CMAKE_BINARY_DIR}/lib + --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example} + ${CMAKE_HOME_DIRECTORY}/examples/python/${example}/${example}.tesh) + endif() +endforeach() + +set(tesh_files examples/python/actor-create/actor-create_d.xml + ${tesh_files} PARENT_SCOPE) +set(examples_src ${examples_src} PARENT_SCOPE)