From: navarro Date: Fri, 26 Oct 2012 14:33:32 +0000 (+0200) Subject: Add std and stdo files to distrib and copy them to build dir if necessary. X-Git-Tag: v3_9_rc1~91^2~200 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dae926451bc7dab8c04a597498de92187df10e97?hp=cef9c4a5d0ba0ea7298147feae9b1164a289f6b7;ds=sidebyside Add std and stdo files to distrib and copy them to build dir if necessary. --- diff --git a/teshsuite/smpi/CMakeLists.txt b/teshsuite/smpi/CMakeLists.txt index 43c70f5414..925bf1a595 100644 --- a/teshsuite/smpi/CMakeLists.txt +++ b/teshsuite/smpi/CMakeLists.txt @@ -10,6 +10,7 @@ if(enable_smpi) set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}") include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi") + include("${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/mpich-test/CMakeLists.txt") add_executable(alltoall2 alltoall2.c ) add_executable(alltoall_basic alltoall_basic.c) diff --git a/teshsuite/smpi/mpich-test/CMakeLists.txt b/teshsuite/smpi/mpich-test/CMakeLists.txt new file mode 100644 index 0000000000..74b267df37 --- /dev/null +++ b/teshsuite/smpi/mpich-test/CMakeLists.txt @@ -0,0 +1,73 @@ +cmake_minimum_required(VERSION 2.6) + +set(tesh_files + ${tesh_files} + PARENT_SCOPE + ) +set(xml_files + ${xml_files} + PARENT_SCOPE + ) +set(examples_src + ${examples_src} + PARENT_SCOPE + ) +set(bin_files + ${bin_files} + PARENT_SCOPE + ) + +set(stdo_std_smpi + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/attrt.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/attrerr.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/context.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/commnames.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/self.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sndrcvrep.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/waitany.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/reqcreate.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/persistent.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/allpair2.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typeub3.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/waitall.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nullproc2.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/allpair.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/hindexed.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/ssendtest2.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sendmany.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nullproc.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nbtest.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sendcplx.stdo + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/hvec.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typebase.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typeub2.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/structf.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typecreate.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nblock.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/cartmap.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/graphtest.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/cartf.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/aborttest.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/errstringsf.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/env.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/profile/ptest.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredmany.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredf.std + ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/scatterv.std +) + +if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}") +else() + foreach(srcfile ${stdo_std_smpi}) + set(dstfile ${srcfile}) + string(REPLACE "${CMAKE_HOME_DIRECTORY}" "${CMAKE_BINARY_DIR}" dst_file "${dstfile}") + #message("copy ${srcfile} to ${dstfile}") + file(COPY ${srcfile} DESTINATION ${dst_file}) + endforeach() +endif() + +set(txt_files + ${txt_files} + ${stdo_std_smpi} + PARENT_SCOPE + )