Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't compile non working and non compiling test
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / pt2pt / CMakeLists.txt
index 5045e56..5aa5cf9 100644 (file)
@@ -7,15 +7,14 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
   endif()
 
   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
-
-  add_executable(allpairf90 allpairf90.f90)
-#  add_executable(greqf90 greqf90.f90 dummyf90.f90)
-#  add_executable(mprobef90 mprobef90.f90)
-  add_executable(statusesf90 statusesf90.f90)
-  target_link_libraries(allpairf90 simgrid mtest_f90)
-#  target_link_libraries(greqf90 simgrid mtest_f90)
-#  target_link_libraries(mprobef90 simgrid mtest_f90)
-  target_link_libraries(statusesf90 simgrid mtest_f90)
+  
+  foreach(test allpairf90
+               # mprobef90 greqf90
+                statusesf90)
+    add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
+    add_dependencies(tests ${test})
+    target_link_libraries(${test} simgrid mtest_f90)   
+  endforeach()
 endif()
 
 set(examples_src