X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5429075eed6f2471fb620fad4962e3aef86ba5f8..a9b91c7b8b52811a51dd3b442d6534006fc67a47:/teshsuite/smpi/CMakeLists.txt diff --git a/teshsuite/smpi/CMakeLists.txt b/teshsuite/smpi/CMakeLists.txt index b501557e0e..6e2339fb1b 100644 --- a/teshsuite/smpi/CMakeLists.txt +++ b/teshsuite/smpi/CMakeLists.txt @@ -6,9 +6,9 @@ if(enable_smpi) else() set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc") endif() - + set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}") - + include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi") add_executable(gather_coll gather_coll.c) add_executable(allgather_coll allgather_coll.c) @@ -18,16 +18,13 @@ if(enable_smpi) add_executable(alltoall_coll alltoall_coll.c) add_executable(alltoallv_coll alltoallv_coll.c) add_executable(allreduce allreduce.c) - add_executable(allreduce_coll allreduce_coll.c) + add_executable(allreduce_coll allreduce_coll.c) add_executable(bcast bcast.c) - add_executable(bcast_coll bcast_coll.c) + add_executable(bcast_coll bcast_coll.c) add_executable(barrier_coll barrier.c ) add_executable(compute compute.c) add_executable(compute2 compute2.c) add_executable(compute3 compute3.c) -if (NOT WIN32) - add_executable(shared shared.c) -endif() add_executable(pingpong pingpong.c) add_executable(scatter scatter.c) add_executable(reduce reduce.c) @@ -49,21 +46,18 @@ endif() target_link_libraries(alltoall_coll simgrid) target_link_libraries(alltoallv_coll simgrid) target_link_libraries(allreduce simgrid) - target_link_libraries(allreduce_coll simgrid) + target_link_libraries(allreduce_coll simgrid) target_link_libraries(bcast simgrid) - target_link_libraries(bcast_coll simgrid) + target_link_libraries(bcast_coll simgrid) target_link_libraries(barrier_coll simgrid) target_link_libraries(compute simgrid) -if (NOT WIN32) - target_link_libraries(shared simgrid) -endif() target_link_libraries(compute2 simgrid) target_link_libraries(compute3 simgrid) target_link_libraries(pingpong simgrid) target_link_libraries(scatter simgrid) target_link_libraries(reduce simgrid) - target_link_libraries(reduce_coll simgrid) - target_link_libraries(reduce_scatter_coll simgrid) + target_link_libraries(reduce_coll simgrid) + target_link_libraries(reduce_scatter_coll simgrid) target_link_libraries(split simgrid) target_link_libraries(smpi_sendrecv simgrid) target_link_libraries(ttest01 simgrid) @@ -77,6 +71,9 @@ endif() if(NOT WIN32) add_executable(dsend dsend.c) target_link_libraries(dsend m simgrid) + + add_executable(shared shared.c) + target_link_libraries(shared simgrid) endif() endif() @@ -86,7 +83,7 @@ set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/gather_coll.tesh ${CMAKE_CURRENT_SOURCE_DIR}/allgather_coll.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv_coll.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv_coll.tesh ${CMAKE_CURRENT_SOURCE_DIR}/allreduce_coll.tesh ${CMAKE_CURRENT_SOURCE_DIR}/allreduce_coll_large.tesh ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_coll.tesh @@ -94,19 +91,17 @@ set(tesh_files ${CMAKE_CURRENT_SOURCE_DIR}/scatter_coll.tesh ${CMAKE_CURRENT_SOURCE_DIR}/barrier_coll.tesh ${CMAKE_CURRENT_SOURCE_DIR}/bcast.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/bcast_coll.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/bcast_coll.tesh ${CMAKE_CURRENT_SOURCE_DIR}/compute.tesh -if (NOT WIN32) ${CMAKE_CURRENT_SOURCE_DIR}/shared.tesh -endif() ${CMAKE_CURRENT_SOURCE_DIR}/hvector.tesh ${CMAKE_CURRENT_SOURCE_DIR}/indexed.tesh ${CMAKE_CURRENT_SOURCE_DIR}/pt2pt.tesh ${CMAKE_CURRENT_SOURCE_DIR}/reduce.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/reduce_coll.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/reduce_scatter_coll.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/reduce_coll.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/reduce_scatter_coll.tesh ${CMAKE_CURRENT_SOURCE_DIR}/struct.tesh - ${CMAKE_CURRENT_SOURCE_DIR}/vector.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/vector.tesh PARENT_SCOPE ) set(xml_files @@ -117,10 +112,10 @@ set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/gather_coll.c ${CMAKE_CURRENT_SOURCE_DIR}/allgather_coll.c - ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv_coll.c + ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv_coll.c ${CMAKE_CURRENT_SOURCE_DIR}/allreduce_coll.c ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_coll.c - ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv_coll.c + ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv_coll.c ${CMAKE_CURRENT_SOURCE_DIR}/bcast_coll.c ${CMAKE_CURRENT_SOURCE_DIR}/reduce_coll.c ${CMAKE_CURRENT_SOURCE_DIR}/reduce_scatter_coll.c @@ -133,9 +128,7 @@ set(examples_src ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv.c ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c -if (NOT WIN32) ${CMAKE_CURRENT_SOURCE_DIR}/shared.c -endif() ${CMAKE_CURRENT_SOURCE_DIR}/split.c ${CMAKE_CURRENT_SOURCE_DIR}/dsend.c ${CMAKE_CURRENT_SOURCE_DIR}/ttest01.c @@ -158,6 +151,6 @@ set(bin_files ) set(txt_files ${txt_files} - + PARENT_SCOPE )