Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'pikachuyann/simgrid-stoprofiles'
[simgrid.git] / examples / deprecated / msg / CMakeLists.txt
1 foreach(x 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(tesh_files    ${tesh_files}    PARENT_SCOPE)
16
17 if(enable_msg)
18   foreach (x trace-categories trace-route-user-variables trace-link-user-variables trace-masterworker 
19              trace-process-migration trace-host-user-variables)
20     ADD_TESH(msg-${x} --setenv bindir=${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
21                       --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x} 
22                       --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms 
23                       --cd ${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
24                       ${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}/${x}.tesh)
25   endforeach()
26 endif(enable_msg)