Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill f2c. Finally. I hope.
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / coll / CMakeLists.txt
index 4da6a2d..0ae2a3f 100644 (file)
@@ -1,6 +1,6 @@
 cmake_minimum_required(VERSION 2.6)
 
-if(enable_smpi)
+if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
   if(WIN32)
     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
   else()
@@ -9,54 +9,38 @@ if(enable_smpi)
   endif()
 
   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
-  set(MPICH_FLAGS "-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DUSE_STDARG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_PROTOTYPES=1 -DHAVE_SIGNAL_H=1 -DHAVE_SIGACTION=1 -DHAVE_SLEEP=1 -DHAVE_SYSCONF=1  -Wno-error=unused-variable -Wno-implicit -Wno-implicit-function-declaration")
   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
 
-  add_executable(allredint8f allredint8f.f ../util/mtestf.f)
-  add_executable(allredopttf allredopttf.f ../util/mtestf.f)
-  add_executable(alltoallvf alltoallvf.f ../util/mtestf.f)
-  add_executable(alltoallwf alltoallwf.f ../util/mtestf.f)
-  add_executable(exscanf exscanf.f ../util/mtestf.f)
-  add_executable(inplacef inplacef.f ../util/mtestf.f)
- # add_executable(nonblockingf nonblockingf.f ../util/mtestf.f)
- # add_executable(nonblocking_inpf nonblocking_inpf.f ../util/mtestf.f)
-  add_executable(red_scat_blockf red_scat_blockf.f ../util/mtestf.f)
-  add_executable(redscatf redscatf.f ../util/mtestf.f)
-  add_executable(reducelocalf reducelocalf.f ../util/mtestf.f)
-  add_executable(split_typef split_typef.f ../util/mtestf.f)
-  add_executable(uallreducef uallreducef.f ../util/mtestf.f)
-  add_executable(vw_inplacef vw_inplacef.f ../util/mtestf.f)
+#  add_executable(allredint8f allredint8f.f)
+#  add_executable(allredopttf allredopttf.f)
+  add_executable(alltoallvf alltoallvf.f)
+#  add_executable(alltoallwf alltoallwf.f)
+  add_executable(exscanf exscanf.f)
+  add_executable(inplacef inplacef.f)
+ # add_executable(nonblockingf nonblockingf.f)
+ # add_executable(nonblocking_inpf nonblocking_inpf.f)
+  add_executable(red_scat_blockf red_scat_blockf.f)
+  add_executable(redscatf redscatf.f)
+  add_executable(reducelocalf reducelocalf.f)
+  add_executable(split_typef split_typef.f)
+  add_executable(uallreducef uallreducef.f)
+  add_executable(vw_inplacef vw_inplacef.f)
 
-  target_link_libraries(allredint8f  simgrid)
-  target_link_libraries(allredopttf  simgrid)
-  target_link_libraries(alltoallvf  simgrid)
-  target_link_libraries(alltoallwf  simgrid)
-  target_link_libraries(exscanf  simgrid)
-  target_link_libraries(inplacef  simgrid)
- # target_link_libraries(nonblockingf  simgrid)
- # target_link_libraries(nonblocking_inpf  simgrid)
-  target_link_libraries(red_scat_blockf  simgrid)
-  target_link_libraries(redscatf  simgrid)
-  target_link_libraries(reducelocalf  simgrid)
-  target_link_libraries(split_typef  simgrid)
-  target_link_libraries(uallreducef  simgrid)
-  target_link_libraries(vw_inplacef  simgrid)
-
-  set_target_properties(allredint8f PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(allredopttf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(alltoallvf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(alltoallwf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(exscanf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(inplacef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-#  set_target_properties(nonblockingf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-#  set_target_properties(nonblocking_inpf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(red_scat_blockf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(redscatf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(reducelocalf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(split_typef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(uallreducef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
-  set_target_properties(vw_inplacef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
+#  target_link_libraries(allredint8f simgrid mtest_f77)
+#  target_link_libraries(allredopttf simgrid mtest_f77)
+  target_link_libraries(alltoallvf simgrid mtest_f77)
+#  target_link_libraries(alltoallwf simgrid mtest_f77)
+  target_link_libraries(exscanf simgrid mtest_f77)
+  target_link_libraries(inplacef simgrid mtest_f77)
+ # target_link_libraries(nonblockingf simgrid mtest_f77)
+ # target_link_libraries(nonblocking_inpf simgrid mtest_f77)
+  target_link_libraries(red_scat_blockf simgrid mtest_f77)
+  target_link_libraries(redscatf simgrid mtest_f77)
+  target_link_libraries(reducelocalf simgrid mtest_f77)
+  target_link_libraries(split_typef simgrid mtest_f77)
+  target_link_libraries(uallreducef simgrid mtest_f77)
+  target_link_libraries(vw_inplacef simgrid mtest_f77)
 
 endif()