Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
compile one more surf example with cpp
[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 endforeach()
9
10 add_executable       (maxmin_bench maxmin_bench/maxmin_bench.cpp)
11 target_link_libraries(maxmin_bench simgrid)
12 set_target_properties(maxmin_bench PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/maxmin_bench)
13
14 foreach(x small medium large)
15   set(tesh_files     ${tesh_files}     ${CMAKE_CURRENT_SOURCE_DIR}/maxmin_bench/maxmin_bench_${x}.tesh)
16 endforeach()
17
18 set(tesh_files     ${tesh_files}                                                               PARENT_SCOPE)
19 set(teshsuite_src  ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/maxmin_bench/maxmin_bench.cpp  PARENT_SCOPE)
20
21 foreach(x lmm_usage surf_usage surf_usage2 trace_usage)
22   ADD_TESH(tesh-surf-${x} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/surf/${x} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/surf/${x} ${x}.tesh)
23 endforeach()
24
25 foreach(x small medium large)
26   ADD_TESH(tesh-surf-maxmin-${x} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/surf/maxmin_bench --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/surf/maxmin_bench maxmin_bench_${x}.tesh)
27 endforeach()