Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
better with that file ...
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 24 Mar 2017 16:25:15 +0000 (17:25 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 24 Mar 2017 16:25:15 +0000 (17:25 +0100)
teshsuite/s4u/CMakeLists.txt [new file with mode: 0644]

diff --git a/teshsuite/s4u/CMakeLists.txt b/teshsuite/s4u/CMakeLists.txt
new file mode 100644 (file)
index 0000000..30cbd0b
--- /dev/null
@@ -0,0 +1,16 @@
+foreach(x pid)
+  add_executable       (${x}  ${x}/${x}.cpp)
+  target_link_libraries(${x}  simgrid)
+  set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
+
+  set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
+  set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
+endforeach()
+
+set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
+set(tesh_files    ${tesh_files}     PARENT_SCOPE)
+set(xml_files     ${xml_files}      PARENT_SCOPE)
+
+foreach(x pid)
+  ADD_TESH_FACTORIES(tesh-msg-${x} "thread;boost;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/s4u/${x} --cd ${CMAKE_BINARY_DIR}/teshsuite/s4u/${x} ${CMAKE_HOME_DIRECTORY}/teshsuite/s4u/${x}/${x}.tesh)
+endforeach()