Salome HOME
54ea889f925f59ebdc5b0ad92e3fcdad48b08aa7
[tools/libbatch.git] / src / Core / CMakeLists.txt
1 # Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
10 #
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 #
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22
23 SET(CLASS_LIST Core/APIInternalFailureException
24                Core/BatchManager
25                Core/BatchManagerCatalog
26                Core/BoolType
27                Core/CommandsOverloader
28                Core/CommunicationProtocol
29                Core/Constants
30                Core/Couple
31                Core/CoupleType
32                Core/Environnement
33                Core/FactBatchManager
34                Core/GenericException
35                Core/GenericType
36                Core/InvalidArgumentException
37                Core/InvalidKeyException
38                Core/Job
39                Core/JobId
40                Core/JobInfo
41                Core/ListIsFullException
42                Core/LongType
43                Core/MpiImpl
44                Core/NotYetImplementedException
45                Core/ParameterTypeMap
46                Core/Parametre
47                Core/RunTimeException
48                Core/StringType
49                Core/TypeMismatchException
50                Core/Versatile
51    )
52
53 APPEND_CLASSES_TO_SRC_FILES(${CLASS_LIST}
54                             Core/Utils
55                             Core/Log)
56 APPEND_CLASSES_TO_HDR_FILES(${CLASS_LIST})
57 APPEND_CLASSES_TO_HDR_FILES(Core/Defines)
58
59 IF (HAS_SH)
60     APPEND_CLASSES_TO_SRC_FILES(Core/CommunicationProtocolSH)
61 ENDIF (HAS_SH)
62
63 IF (HAS_RSH)
64     APPEND_CLASSES_TO_SRC_FILES(Core/CommunicationProtocolRSH)
65 ENDIF (HAS_RSH)
66
67 IF (HAS_SSH)
68     APPEND_CLASSES_TO_SRC_FILES(Core/CommunicationProtocolSSH)
69 ENDIF (HAS_SSH)
70
71 IF (HAS_RSYNC)
72     APPEND_CLASSES_TO_SRC_FILES(Core/CommunicationProtocolRsync)
73 ENDIF (HAS_RSYNC)
74
75
76 IF (LIBBATCH_BUILD_TESTS)
77     ADD_SUBDIRECTORY(Test)
78 ENDIF ()