X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4a6b0a991a67e6f2f67c03fed43529e078da7115..41c1c60e6a271e5c765deb0f2c4c28eb2e3516c3:/examples/msg/masterslave/CMakeLists.txt diff --git a/examples/msg/masterslave/CMakeLists.txt b/examples/msg/masterslave/CMakeLists.txt index 9291a4fc46..356b67c0c4 100644 --- a/examples/msg/masterslave/CMakeLists.txt +++ b/examples/msg/masterslave/CMakeLists.txt @@ -1,52 +1,29 @@ -set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}") +foreach (example masterslave_forwarder masterslave_mailbox) + add_executable (${example} ${example}.c) + target_link_libraries(${example} simgrid) + set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}.c) + set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/${example}_crosstraffic.tesh) -add_executable(masterslave_failure "masterslave_failure.c") -add_executable(masterslave_forwarder "masterslave_forwarder.c") -add_executable(masterslave_mailbox "masterslave_mailbox.c") -add_executable(masterslave_cluster "masterslave_cluster.c") -add_executable(masterslave_kill "masterslave_kill.c") -add_executable(masterslave_arg "masterslave_arg.c") + ADD_TESH_FACTORIES(msg-${example} "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave/${example}_crosstraffic.tesh) + ADD_TESH_FACTORIES(msg-${example}-no-crosstraffic "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave/${example}.tesh) +endforeach() -target_link_libraries(masterslave_forwarder simgrid ) -target_link_libraries(masterslave_failure simgrid ) -target_link_libraries(masterslave_mailbox simgrid ) -target_link_libraries(masterslave_kill simgrid ) -target_link_libraries(masterslave_arg simgrid ) -target_link_libraries(masterslave_cluster simgrid) - -set(tesh_files - ${tesh_files} - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_cpu_ti.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_forwarder_crosstraffic.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_mailbox.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_cas01_im.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_crosstraffic.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_forwarder.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_multicore.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_failure_crosstraffic.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_kill.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_cpu_ti_crosstraffic.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_failure.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_mailbox_crosstraffic.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_vivaldi.tesh - PARENT_SCOPE) -set(xml_files - ${xml_files} - ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_forwarder.xml - ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_mailbox_multicore.xml - ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_vivaldi.xml - ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_kill.xml - ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_mailbox.xml - ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave.xml - PARENT_SCOPE) -set(examples_src - ${examples_src} - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_arg.c - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_cluster.c - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_failure.c - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_forwarder.c - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_kill.c - ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_mailbox.c - PARENT_SCOPE) +ADD_TESH_FACTORIES(msg-masterslave "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave/masterslave_crosstraffic.tesh) +ADD_TESH_FACTORIES(msg-masterslave-multicore "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave/masterslave_multicore.tesh) +ADD_TESH_FACTORIES(msg-masterslave-cpu-ti "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/masterslave --cd ${CMAKE_HOME_DIRECTORY}/examples/msg masterslave/masterslave_cpu_ti_crosstraffic.tesh) +ADD_TESH_FACTORIES(msg-masterslave-vivaldi "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave/masterslave_vivaldi.tesh) +ADD_TESH_FACTORIES(msg-masterslave-no-crosstraffic "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave/masterslave.tesh) +set(examples_src ${examples_src} PARENT_SCOPE) +set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/masterslave.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_crosstraffic.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_cpu_ti.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_cpu_ti_crosstraffic.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_multicore.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/masterslave_vivaldi.tesh PARENT_SCOPE) +set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_forwarder.xml + ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_mailbox.xml + ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_mailbox_multicore.xml + ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave_vivaldi.xml + ${CMAKE_CURRENT_SOURCE_DIR}/deployment_masterslave.xml PARENT_SCOPE)