Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Mar 2020 10:26:22 +0000 (11:26 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Mar 2020 10:39:36 +0000 (11:39 +0100)
examples/deprecated/msg/CMakeLists.txt

index 11bcdfb..6d634a5 100644 (file)
@@ -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