Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't tell 165 times that we need CMAKE v2.6
[simgrid.git] / teshsuite / msg / host_on_off / CMakeLists.txt
index 5230929..e6c78e1 100644 (file)
@@ -1,26 +1,29 @@
-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)
 
-### Add definitions for compile
-target_link_libraries(host_on_off simgrid)
+endforeach()
 
 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
-  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_p.xml
+  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_wait.tesh
+  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_recv.tesh
   PARENT_SCOPE
   )
 set(teshsuite_src
   ${teshsuite_src}
   ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off.c
+  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_wait.c
+  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_recv.c
+  PARENT_SCOPE
+  )
+
+set(xml_files
+  ${xml_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off_d.xml
   PARENT_SCOPE
   )
 set(bin_files