- add_executable(attr2type attr2type.c ../util/mtest.c)
- add_executable(attrend2 attrend2.c ../util/mtest.c)
- add_executable(attrend attrend.c ../util/mtest.c)
- add_executable(attrerr attrerr.c ../util/mtest.c)
- add_executable(attrerrcomm attrerrcomm.c ../util/mtest.c)
- add_executable(attrerrtype attrerrtype.c ../util/mtest.c)
- add_executable(attric attric.c ../util/mtest.c)
- add_executable(attrorder attrorder.c ../util/mtest.c)
- add_executable(attrordercomm attrordercomm.c ../util/mtest.c)
- add_executable(attrordertype attrordertype.c ../util/mtest.c)
- add_executable(attrt attrt.c ../util/mtest.c)
- add_executable(baseattr2 baseattr2.c ../util/mtest.c)
- add_executable(baseattrcomm baseattrcomm.c ../util/mtest.c)
- add_executable(fkeyval fkeyval.c ../util/mtest.c)
- add_executable(fkeyvalcomm fkeyvalcomm.c ../util/mtest.c)
- add_executable(fkeyvaltype fkeyvaltype.c ../util/mtest.c)
- add_executable(keyval_double_free keyval_double_free.c ../util/mtest.c)
-
- target_link_libraries(attr2type simgrid)
- target_link_libraries(attrend2 simgrid)
- target_link_libraries(attrend simgrid)
- target_link_libraries(attrerr simgrid)
- target_link_libraries(attrerrcomm simgrid)
- target_link_libraries(attrerrtype simgrid)
- target_link_libraries(attric simgrid)
- target_link_libraries(attrorder simgrid)
- target_link_libraries(attrordercomm simgrid)
- target_link_libraries(attrordertype simgrid)
- target_link_libraries(attrt simgrid)
- target_link_libraries(baseattr2 simgrid)
- target_link_libraries(baseattrcomm simgrid)
- target_link_libraries(fkeyval simgrid)
- target_link_libraries(fkeyvalcomm simgrid)
- target_link_libraries(fkeyvaltype simgrid)
- target_link_libraries(keyval_double_free simgrid)
+ foreach(file attr2type attrdeleteget attrend2 attrend attrerr attrerrcomm attrerrtype attrorder attrordercomm attrordertype attrt
+ baseattr2 baseattrcomm fkeyval fkeyvalcomm fkeyvaltype keyval_double_free) #attric
+ add_executable(${file} EXCLUDE_FROM_ALL ${file}.c)
+ add_dependencies(tests ${file})
+ target_link_libraries(${file} simgrid mtest_c)
+ endforeach()
+endif()