]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/ParaMEDMEMTest/CMakeLists.txt
Salome HOME
d31e6f4f5f19170589e91ce8a47c4931553623ef
[tools/medcoupling.git] / src / ParaMEDMEMTest / CMakeLists.txt
1 # Copyright (C) 2012-2015  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 ADD_DEFINITIONS(${MPI_DEFINITIONS} ${CPPUNIT_DEFINITIONS})
21
22 INCLUDE_DIRECTORIES(
23   ${MPI_INCLUDE_DIRS}
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
31   )
32
33 SET(ParaMEDMEMTest_SOURCES
34   ParaMEDMEMTest.cxx
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
45   MPIAccessDECTest.cxx
46   test_AllToAllDEC.cxx
47   test_AllToAllvDEC.cxx
48   test_AllToAllTimeDEC.cxx
49   test_AllToAllvTimeDEC.cxx
50   test_AllToAllvTimeDoubleDEC.cxx
51   MPIAccessTest.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
67   )
68
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})
73
74 SET(TESTSParaMEDMEM)
75 SET(TestParaMEDMEM_SOURCES
76   TestParaMEDMEM.cxx
77   )
78 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} TestParaMEDMEM)
79
80 SET(TestMPIAccessDEC_SOURCES
81   TestMPIAccessDEC.cxx
82   )
83 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} TestMPIAccessDEC)
84
85 SET(TestMPIAccess_SOURCES
86   TestMPIAccess.cxx
87   )
88 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} TestMPIAccess)
89
90 SET(test_perf_SOURCES
91   test_perf.cxx
92   )
93 SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} test_perf)
94
95 IF(MPI2_IS_OK)
96   SET(ParaMEDMEMTestMPI2_1_SOURCES
97     MPI2Connector.cxx
98     ParaMEDMEMTestMPI2_1.cxx
99     )
100   SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} ParaMEDMEMTestMPI2_1)
101   
102   SET(ParaMEDMEMTestMPI2_2_SOURCES
103     MPI2Connector.cxx
104     ParaMEDMEMTestMPI2_2.cxx
105     )
106   SET(TESTSParaMEDMEM ${TESTSParaMEDMEM} ParaMEDMEMTestMPI2_2)
107 ENDIF(MPI2_IS_OK)
108
109 FOREACH(bintestparamem ${TESTSParaMEDMEM})
110   ADD_EXECUTABLE(${bintestparamem} ${${bintestparamem}_SOURCES})
111   TARGET_LINK_LIBRARIES(${bintestparamem} ParaMEDMEMTest)
112 ENDFOREACH(bintestparamem ${TESTSParaMEDMEM})
113
114 INSTALL(TARGETS ${TESTSParaMEDMEM} DESTINATION ${SALOME_INSTALL_BINS})
115 SET(COMMON_HEADERS_HXX
116   MPIMainTest.hxx
117   MPIAccessDECTest.hxx
118   MPIAccessTest.hxx
119   ParaMEDMEMTest.hxx
120   MPI2Connector.hxx
121 )
122 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})