1 if(enable_smpi AND enable_smpi_MPICH3_testsuite)
3 set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
5 set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
6 set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
9 include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
10 include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
12 foreach(file groupcreate grouptest2 grouptest gtranks gtranksperf) #groupnullincl glpid
13 add_executable(${file} ${file}.c)
14 target_link_libraries(${file} simgrid mtest_c)
18 if (enable_smpi_MPICH3_testsuite AND HAVE_RAW_CONTEXTS)
19 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 ${TESH_OPTION} -mpiexec=${CMAKE_BINARY_DIR}/smpi_script/bin/smpirun -srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich3-test/group -tests=testlist -execarg=--cfg=contexts/factory:raw)
20 SET_TESTS_PROPERTIES(test-smpi-mpich3-group-raw PROPERTIES PASS_REGULAR_EXPRESSION "tests passed!")
23 foreach(file groupcreate grouptest2 grouptest gtranks gtranksperf groupnullincl glpid)
24 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c)
27 set(examples_src ${examples_src} PARENT_SCOPE)
28 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/testlist PARENT_SCOPE)