1 if(enable_smpi AND enable_smpi_MPICH3_testsuite)
2 set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
3 set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
5 include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
6 include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
8 foreach(file groupcreate grouptest2 grouptest gtranks gtranksperf) #groupnullincl glpid
9 add_executable(${file} EXCLUDE_FROM_ALL ${file}.c)
10 add_dependencies(tests ${file})
11 target_link_libraries(${file} simgrid mtest_c)
15 if (enable_smpi_MPICH3_testsuite AND HAVE_RAW_CONTEXTS)
16 ADD_TEST(test-smpi-mpich3-group-raw ${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}/teshsuite/smpi/mpich3-test/group ${PERL_EXECUTABLE} ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/runtests "-wrapper=${VALGRIND_WRAPPER}" -mpiexec=${CMAKE_BINARY_DIR}/smpi_script/bin/smpirun -srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/group -tests=testlist -execarg=--cfg=contexts/factory:raw)
17 SET_TESTS_PROPERTIES(test-smpi-mpich3-group-raw PROPERTIES PASS_REGULAR_EXPRESSION "tests passed!")
20 foreach(file groupcreate grouptest2 grouptest gtranks gtranksperf groupnullincl glpid)
21 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c)
24 set(examples_src ${examples_src} PARENT_SCOPE)
25 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/testlist PARENT_SCOPE)