X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/839e2fb8eb9378e4603161aef6caf6169d4bd788..d6aa3c0dc9e3022f3a430092266d3aecdbe55402:/examples/deprecated/msg/CMakeLists.txt diff --git a/examples/deprecated/msg/CMakeLists.txt b/examples/deprecated/msg/CMakeLists.txt index 11bcdfb976..6d634a5057 100644 --- a/examples/deprecated/msg/CMakeLists.txt +++ b/examples/deprecated/msg/CMakeLists.txt @@ -1,8 +1,5 @@ -# C examples -foreach(x dht-pastry - synchro-semaphore trace-categories - trace-route-user-variables trace-link-user-variables trace-masterworker - trace-process-migration trace-host-user-variables) +foreach(x dht-pastry synchro-semaphore trace-categories trace-route-user-variables trace-link-user-variables + trace-masterworker trace-process-migration trace-host-user-variables) if(enable_msg) add_executable (${x} EXCLUDE_FROM_ALL ${x}/${x}.c) target_link_libraries(${x} simgrid) @@ -13,15 +10,11 @@ foreach(x dht-pastry set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh) endforeach() -foreach (file dht-pastry) - set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/${file}/${file}_d.xml) -endforeach() - set(examples_src ${examples_src} PARENT_SCOPE) set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/README.doc PARENT_SCOPE) set(bin_files ${bin_files} ${CMAKE_CURRENT_SOURCE_DIR}/dht-pastry/generate.py PARENT_SCOPE) set(tesh_files ${tesh_files} PARENT_SCOPE) -set(xml_files ${xml_files} PARENT_SCOPE) +set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/dht-pastry/dht-pastry_d.xml PARENT_SCOPE) if(enable_msg) foreach(x dht-pastry synchro-semaphore) @@ -32,7 +25,8 @@ if(enable_msg) ${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}/${x}.tesh) endforeach() - foreach (x trace-categories trace-route-user-variables trace-link-user-variables trace-masterworker trace-process-migration trace-host-user-variables) + foreach (x trace-categories trace-route-user-variables trace-link-user-variables trace-masterworker + trace-process-migration trace-host-user-variables) ADD_TESH(msg-${x} --setenv bindir=${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x} --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms