Salome HOME
Added option to enable or disable tests.
[tools/libbatch.git] / src / Python / CMakeLists.txt
index f6e682cf6a766b728deb154a2dac39d16434e913..e49fb8c2dbb9422c69837db6c23a9486c441be59 100644 (file)
@@ -38,4 +38,6 @@ INSTALL(FILES Batch_PyVersatile.hxx DESTINATION include/Batch)
 
 SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES libBatch_Swig.py)
 
-add_subdirectory(Test)
+IF (TEST_ENABLED)
+    add_subdirectory(Test)
+ENDIF (TEST_ENABLED)