Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
no dynar in the new C interface (+cleanups in CMakeLists)
[simgrid.git] / teshsuite / c / CMakeLists.txt
1 foreach(x async-waitany)
2   add_executable       (${x} EXCLUDE_FROM_ALL ${x}/${x}.c)
3   target_link_libraries(${x} simgrid)
4   set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
5   add_dependencies(tests ${x})
6
7   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
8   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
9 endforeach()
10
11 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
12 set(xml_files     ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/async-waitany_d.xml    PARENT_SCOPE)
13
14 foreach(x async-waitany)
15   ADD_TESH(tesh-c-${x} --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
16                        --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/c/${x}
17                        --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/c/${x}
18                        ${CMAKE_HOME_DIRECTORY}/teshsuite/c/${x}/${x}.tesh)
19 endforeach()