Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factor cmake for teshsuite/msg
[simgrid.git] / teshsuite / surf / CMakeLists.txt
1 foreach(x lmm_usage surf_usage surf_usage2 trace_usage)
2   add_executable       (${x}  ${x}/${x}.cpp)
3   target_link_libraries(${x}  simgrid)
4   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
5
6   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
7   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
8
9   ADD_TESH(tesh-surf-${x} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/surf/${x} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/surf/${x} ${x}.tesh)
10 endforeach()
11
12 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
13 set(tesh_files    ${tesh_files}     PARENT_SCOPE)