Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / examples / deprecated / msg / CMakeLists.txt
1 foreach(x dht-pastry synchro-semaphore trace-categories trace-route-user-variables trace-link-user-variables 
2         trace-masterworker trace-process-migration trace-host-user-variables)
3   if(enable_msg)
4     add_executable       (${x}  EXCLUDE_FROM_ALL ${x}/${x}.c)
5     target_link_libraries(${x}  simgrid)
6     set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
7     add_dependencies(tests ${x})
8   endif()
9   set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
10   set(tesh_files   ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
11 endforeach()
12
13 set(examples_src  ${examples_src}  PARENT_SCOPE)
14 set(txt_files     ${txt_files}     ${CMAKE_CURRENT_SOURCE_DIR}/README.doc                                  PARENT_SCOPE)
15 set(bin_files     ${bin_files}     ${CMAKE_CURRENT_SOURCE_DIR}/dht-pastry/generate.py                      PARENT_SCOPE)
16 set(tesh_files    ${tesh_files}    PARENT_SCOPE)
17 set(xml_files     ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/dht-pastry/dht-pastry_d.xml                 PARENT_SCOPE)
18
19 if(enable_msg)
20   foreach(x dht-pastry synchro-semaphore)
21     ADD_TESH_FACTORIES(msg-${x} "thread;ucontext;raw;boost" 
22                                 --setenv bindir=${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
23                                 --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x} 
24                                 --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms 
25                                 ${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}/${x}.tesh)
26   endforeach()
27
28   foreach (x trace-categories trace-route-user-variables trace-link-user-variables trace-masterworker 
29              trace-process-migration trace-host-user-variables)
30     ADD_TESH(msg-${x} --setenv bindir=${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
31                       --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x} 
32                       --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms 
33                       --cd ${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
34                       ${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}/${x}.tesh)
35   endforeach()
36 endif(enable_msg)