Salome HOME
Small correction.
[modules/smesh.git] / doc / salome / examples / CMakeLists.txt
1 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
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.
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 SET(BAD_TESTS
21   3dmesh.py
22   creating_meshes_ex01.py
23   creating_meshes_ex03.py
24   creating_meshes_ex05.py
25   defining_hypotheses_ex06.py
26   defining_hypotheses_ex09.py
27   defining_hypotheses_ex17.py
28   filters_ex02.py
29   filters_ex08.py
30   filters_ex23.py
31   filters_ex24.py
32   filters_ex25.py
33   filters_ex32.py
34   filters_ex35.py
35   generate_flat_elements.py
36   modifying_meshes_ex26.py
37   notebook_smesh.py
38   quality_controls_ex06.py
39   quality_controls_ex20.py
40   quality_controls_ex21.py
41   quality_controls_ex22.py
42   viewing_meshes_ex01.py 
43 )
44
45 SET(GOOD_TESTS
46   cartesian_algo.py 
47   creating_meshes_ex02.py 
48   creating_meshes_ex04.py 
49   creating_meshes_ex06.py 
50   creating_meshes_ex07.py 
51   creating_meshes_ex08.py 
52   defining_hypotheses_ex01.py 
53   defining_hypotheses_ex02.py 
54   defining_hypotheses_ex03.py 
55   defining_hypotheses_ex04.py 
56   defining_hypotheses_ex05.py 
57   defining_hypotheses_ex07.py 
58   defining_hypotheses_ex08.py 
59   defining_hypotheses_ex10.py 
60   defining_hypotheses_ex11.py 
61   defining_hypotheses_ex12.py 
62   defining_hypotheses_ex13.py 
63   defining_hypotheses_ex14.py 
64   defining_hypotheses_ex15.py 
65   defining_hypotheses_ex16.py 
66   filters_ex01.py 
67   filters_ex03.py 
68   filters_ex04.py 
69   filters_ex05.py 
70   filters_ex06.py 
71   filters_ex07.py 
72   filters_ex09.py 
73   filters_ex10.py 
74   filters_ex11.py 
75   filters_ex12.py 
76   filters_ex13.py 
77   filters_ex14.py 
78   filters_ex15.py 
79   filters_ex16.py 
80   filters_ex17.py 
81   filters_ex18.py 
82   filters_ex19.py 
83   filters_ex20.py 
84   filters_ex21.py 
85   filters_ex22.py 
86   filters_ex26.py 
87   filters_ex27.py 
88   filters_ex28.py 
89   filters_ex29.py 
90   filters_ex30.py 
91   filters_ex31.py 
92   filters_ex33.py 
93   filters_ex34.py 
94   filters_ex36.py 
95   grouping_elements_ex01.py 
96   grouping_elements_ex02.py 
97   grouping_elements_ex03.py 
98   grouping_elements_ex04.py 
99   grouping_elements_ex05.py 
100   grouping_elements_ex06.py 
101   grouping_elements_ex07.py 
102   grouping_elements_ex08.py 
103   measurements_ex01.py 
104   measurements_ex02.py 
105   modifying_meshes_ex01.py 
106   modifying_meshes_ex02.py 
107   modifying_meshes_ex03.py 
108   modifying_meshes_ex04.py 
109   modifying_meshes_ex05.py 
110   modifying_meshes_ex06.py 
111   modifying_meshes_ex07.py 
112   modifying_meshes_ex08.py 
113   modifying_meshes_ex09.py 
114   modifying_meshes_ex10.py 
115   modifying_meshes_ex11.py 
116   modifying_meshes_ex12.py 
117   modifying_meshes_ex13.py 
118   modifying_meshes_ex14.py 
119   modifying_meshes_ex15.py 
120   modifying_meshes_ex16.py 
121   modifying_meshes_ex17.py 
122   modifying_meshes_ex18.py 
123   modifying_meshes_ex19.py 
124   modifying_meshes_ex20.py 
125   modifying_meshes_ex21.py 
126   modifying_meshes_ex22.py 
127   modifying_meshes_ex23.py 
128   modifying_meshes_ex24.py 
129   modifying_meshes_ex25.py 
130   prism_3d_algo.py 
131   quality_controls_ex01.py 
132   quality_controls_ex02.py 
133   quality_controls_ex03.py 
134   quality_controls_ex04.py 
135   quality_controls_ex05.py 
136   quality_controls_ex07.py 
137   quality_controls_ex08.py 
138   quality_controls_ex09.py 
139   quality_controls_ex10.py 
140   quality_controls_ex11.py 
141   quality_controls_ex12.py 
142   quality_controls_ex13.py 
143   quality_controls_ex14.py 
144   quality_controls_ex15.py 
145   quality_controls_ex16.py 
146   quality_controls_ex17.py 
147   quality_controls_ex18.py 
148   quality_controls_ex19.py 
149   transforming_meshes_ex01.py 
150   transforming_meshes_ex02.py 
151   transforming_meshes_ex03.py 
152   transforming_meshes_ex04.py 
153   transforming_meshes_ex05.py 
154   transforming_meshes_ex06.py 
155   transforming_meshes_ex07.py 
156   transforming_meshes_ex08.py 
157   transforming_meshes_ex09.py 
158   transforming_meshes_ex10.py 
159   transforming_meshes_ex11.py 
160   transforming_meshes_ex12.py 
161   transforming_meshes_ex13.py 
162   use_existing_faces.py 
163   viewing_meshes_ex02.py
164 )
165
166 SET(EXAMPLES_TESTS ${BAD_TESTS} ${GOOD_TESTS} testme.py)
167
168 SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
169
170 FOREACH(test ${GOOD_TESTS})
171   GET_FILENAME_COMPONENT(testname ${test} NAME_WE)
172   ADD_TEST(NAME ${testname} 
173            COMMAND ${PYTHON_EXECUTABLE} -B ${CMAKE_SOURCE_DIR}/doc/salome/examples/testme.py ${CMAKE_CURRENT_SOURCE_DIR}/${test})
174   SET_TESTS_PROPERTIES(${testname} PROPERTIES ENVIRONMENT "${tests_env}")
175 ENDFOREACH()
176
177 # install Python scripts
178 SALOME_INSTALL_SCRIPTS("${EXAMPLES_TESTS}" ${SALOME_INSTALL_DOC}/examples/SMESH)