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 / info / CMakeLists.txt
index d47edb7..a8b8cdd 100644 (file)
@@ -7,12 +7,11 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
   endif()
 
   set(CMAKE_INCLUDE_CURRENT_DIR ON)
-  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(infotest2f infotest2f.f ../util/mtestf.f)
-  add_executable(infotestf infotestf.f ../util/mtestf.f)
+  add_executable(infotest2f EXCLUDE_FROM_ALL infotest2f.f ../util/mtestf.f)
+  add_executable(infotestf  EXCLUDE_FROM_ALL infotestf.f ../util/mtestf.f)
+  add_dependencies(tests infotestf infotest2f)
   target_link_libraries(infotest2f simgrid mtest_f77)
   target_link_libraries(infotestf simgrid mtest_f77)
 endif()