1 # Copyright (C) 2012-2015 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 ADD_DEFINITIONS(${MPI_DEFINITIONS} ${CPPUNIT_DEFINITIONS})
24 ${CPPUNIT_INCLUDE_DIRS}
25 ${CMAKE_CURRENT_SOURCE_DIR}/../ParaMEDLoader
26 ${CMAKE_CURRENT_SOURCE_DIR}/../ParaMEDMEM
27 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDLoader
28 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling
29 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
30 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
33 SET(ParaMEDMEMTest_SOURCES
35 ParaMEDMEMTest_MPIProcessorGroup.cxx
36 ParaMEDMEMTest_BlockTopology.cxx
37 ParaMEDMEMTest_InterpKernelDEC.cxx
38 ParaMEDMEMTest_StructuredCoincidentDEC.cxx
39 ParaMEDMEMTest_MEDLoader.cxx
40 ParaMEDMEMTest_ICoco.cxx
41 ParaMEDMEMTest_Gauthier1.cxx
42 ParaMEDMEMTest_FabienAPI.cxx
43 ParaMEDMEMTest_NonCoincidentDEC.cxx
44 ParaMEDMEMTest_OverlapDEC.cxx
48 test_AllToAllTimeDEC.cxx
49 test_AllToAllvTimeDEC.cxx
50 test_AllToAllvTimeDoubleDEC.cxx
52 test_MPI_Access_Send_Recv.cxx
53 test_MPI_Access_Cyclic_Send_Recv.cxx
54 test_MPI_Access_SendRecv.cxx
55 test_MPI_Access_ISend_IRecv.cxx
56 test_MPI_Access_Cyclic_ISend_IRecv.cxx
57 test_MPI_Access_ISendRecv.cxx
58 test_MPI_Access_Probe.cxx
59 test_MPI_Access_IProbe.cxx
60 test_MPI_Access_Cancel.cxx
61 test_MPI_Access_Send_Recv_Length.cxx
62 test_MPI_Access_ISend_IRecv_Length.cxx
63 test_MPI_Access_ISend_IRecv_Length_1.cxx
64 test_MPI_Access_Time.cxx
65 test_MPI_Access_Time_0.cxx
66 test_MPI_Access_ISend_IRecv_BottleNeck.cxx
69 ADD_LIBRARY(ParaMEDMEMTest SHARED ${ParaMEDMEMTest_SOURCES})
70 SET_TARGET_PROPERTIES(ParaMEDMEMTest PROPERTIES COMPILE_FLAGS "")
71 TARGET_LINK_LIBRARIES(ParaMEDMEMTest paramedmem paramedloader ${CPPUNIT_LIBRARIES})
72 INSTALL(TARGETS ParaMEDMEMTest DESTINATION ${SALOME_INSTALL_LIBS})
75 SET(TestParaMEDMEM_SOURCES
78 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} TestParaMEDMEM)
80 SET(TestMPIAccessDEC_SOURCES
83 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} TestMPIAccessDEC)
85 SET(TestMPIAccess_SOURCES
88 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} TestMPIAccess)
93 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} test_perf)
96 SET(ParaMEDMEMTestMPI2_1_SOURCES
98 ParaMEDMEMTestMPI2_1.cxx
100 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} ParaMEDMEMTestMPI2_1)
102 SET(ParaMEDMEMTestMPI2_2_SOURCES
104 ParaMEDMEMTestMPI2_2.cxx
106 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} ParaMEDMEMTestMPI2_2)
109 FOREACH(bintestparamem ${TESTSParaMEDMEM})
110 ADD_EXECUTABLE(${bintestparamem} ${${bintestparamem}_SOURCES})
111 TARGET_LINK_LIBRARIES(${bintestparamem} ParaMEDMEMTest)
112 ENDFOREACH(bintestparamem ${TESTSParaMEDMEM})
114 INSTALL(TARGETS ${TESTSParaMEDMEM} DESTINATION ${SALOME_INSTALL_BINS})
115 SET(COMMON_HEADERS_HXX
122 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})