Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
host-on-off: add basic tests
[simgrid.git] / teshsuite / msg / host_on_off / CMakeLists.txt
index 7f9719c..ca555f8 100644 (file)
@@ -2,16 +2,16 @@ cmake_minimum_required(VERSION 2.6)
 
 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
 
-add_executable(host_on_off host_on_off.c)
+foreach(x host_on_off host_on_off_wait host_on_off_recv)
+  add_executable(${x} ${x}.c)
+  target_link_libraries(${x} simgrid)
+  set(tesh_files
+    ${tesh_files}
+    ${CMAKE_CURRENT_SOURCE_DIR}/${x}.tesh
+    PARENT_SCOPE
+    )
+endforeach()
 
-### Add definitions for compile
-target_link_libraries(host_on_off simgrid)
-
-set(tesh_files
-  ${tesh_files}
-  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off.tesh
-  PARENT_SCOPE
-  )
 set(xml_files
   ${xml_files}
   ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_d.xml
@@ -20,6 +20,7 @@ set(xml_files
 set(teshsuite_src
   ${teshsuite_src}
   ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off.c
+  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_simple.c
   PARENT_SCOPE
   )
 set(bin_files