]> SALOME platform Git repositories - modules/homard.git/commitdiff
Salome HOME
bos #26750 Disable HOMARD tests if medfile is built with 32-bits IDs (this is unsuppo...
authorvsr <vsr@opencascade.com>
Thu, 9 Dec 2021 09:18:07 +0000 (12:18 +0300)
committervsr <vsr@opencascade.com>
Thu, 9 Dec 2021 09:18:07 +0000 (12:18 +0300)
src/tests/CMakeLists.txt

index 99f9795bb7325d41250e27be08723fb33674b330..d17e1fcaeb7d3e5aacaa07bf45a2ecb5f7a9c128 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-IF(SALOME_BUILD_TESTS)
-  ADD_SUBDIRECTORY(Test)
-ENDIF(SALOME_BUILD_TESTS)
+IF(MED_INT_IS_LONG)
+  # Homard tests are unavailable if medfile is built with 32-bits UIDs
+  IF(SALOME_BUILD_TESTS)
+    ADD_SUBDIRECTORY(Test)
+  ENDIF(SALOME_BUILD_TESTS)
 
-FILE(GLOB sample_files
-  ${PROJECT_SOURCE_DIR}/src/tests/samples/*.med
-  ${PROJECT_SOURCE_DIR}/src/tests/samples/*.bilan
-  ${PROJECT_SOURCE_DIR}/src/tests/samples/*.odt
-  ${PROJECT_SOURCE_DIR}/src/tests/samples/*.pdf
-  ${PROJECT_SOURCE_DIR}/src/tests/samples/*.png
-  ${PROJECT_SOURCE_DIR}/src/tests/samples/*.xao)
-INSTALL(FILES ${sample_files} DESTINATION ${SALOME_HOMARD_INSTALL_SAMPLES})
+  FILE(GLOB sample_files
+    ${PROJECT_SOURCE_DIR}/src/tests/samples/*.med
+    ${PROJECT_SOURCE_DIR}/src/tests/samples/*.bilan
+    ${PROJECT_SOURCE_DIR}/src/tests/samples/*.odt
+    ${PROJECT_SOURCE_DIR}/src/tests/samples/*.pdf
+    ${PROJECT_SOURCE_DIR}/src/tests/samples/*.png
+    ${PROJECT_SOURCE_DIR}/src/tests/samples/*.xao)
+  INSTALL(FILES ${sample_files} DESTINATION ${SALOME_HOMARD_INSTALL_SAMPLES})
+ENDIF(MED_INT_IS_LONG)