Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Also add the mpich3 binaries in the dependencies of make tests
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / topo / CMakeLists.txt
index 1258e4a..19223a3 100644 (file)
@@ -6,16 +6,15 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
     set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
   endif()
 
-  set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
-  include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
 
-  add_executable(cartcrf cartcrf.f)
-#  add_executable(dgraph_unwgtf dgraph_unwgtf.f)
-#  add_executable(dgraph_wgtf dgraph_unwgtf.f)
-  target_link_libraries(cartcrf simgrid mtest_f77)
-#  target_link_libraries(dgraph_wgtf simgrid mtest_f77)
-#  target_link_libraries(dgraph_unwgtf simgrid mtest_f77)
+  foreach(test cartcrf
+             # dgraph_unwgtf dgraph_wgtf
+              )
+    add_executable(${test} EXCLUDE_FROM_ALL ${test}.f)
+    add_dependencies(tests ${test})
+    target_link_libraries(${test} simgrid mtest_f77)
+  endforeach()
 endif()
 
 set(examples_src