]> SALOME platform Git repositories - tools/libbatch.git/blobdiff - src/Core/CMakeLists.txt
Salome HOME
Removed unnecessary headers in install tree
[tools/libbatch.git] / src / Core / CMakeLists.txt
index cec2935027c74ef021ca168bd23f4cae407da4dc..308292bda4b5204a00cbbc330f00ece8ea1e3636 100644 (file)
@@ -57,27 +57,22 @@ SET(CLASS_LIST Core/Batch_APIInternalFailureException
                Core/Batch_Versatile
    )
 
+APPEND_CLASSES_TO_SRC_FILES(${CLASS_LIST})
+APPEND_CLASSES_TO_HDR_FILES(${CLASS_LIST})
+APPEND_CLASSES_TO_HDR_FILES(Core/Batch_Defines)
+
 IF (HAS_SH)
-    SET(CLASS_LIST ${CLASS_LIST}
-                   Core/Batch_CommunicationProtocolSH
-       )
+    APPEND_CLASSES_TO_SRC_FILES(Core/Batch_CommunicationProtocolSH)
 ENDIF (HAS_SH)
 
 IF (HAS_RSH)
-    SET(CLASS_LIST ${CLASS_LIST}
-                   Core/Batch_CommunicationProtocolRSH
-       )
+    APPEND_CLASSES_TO_SRC_FILES(Core/Batch_CommunicationProtocolRSH)
 ENDIF (HAS_RSH)
 
 IF (HAS_SSH)
-    SET(CLASS_LIST ${CLASS_LIST}
-                   Core/Batch_CommunicationProtocolSSH
-       )
+    APPEND_CLASSES_TO_SRC_FILES(Core/Batch_CommunicationProtocolSSH)
 ENDIF (HAS_SSH)
 
-APPEND_CLASSES_TO_SRC_FILES(${CLASS_LIST})
-APPEND_CLASSES_TO_HDR_FILES(${CLASS_LIST})
-APPEND_CLASSES_TO_HDR_FILES(Core/Batch_Defines)
 
 IF (TEST_ENABLED)
     add_subdirectory(Test)