- enable cmake testing for have message "No tests were
found" if module has not tests
FIND_PACKAGE(SalomeOmniORB REQUIRED)
FIND_PACKAGE(SalomeOmniORBPy REQUIRED)
-# User options
-# (some options have already been defined in KERNEL)
+# User options
# ============
-# OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) #for use in the future
+OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
OPTION(SALOME_BUILD_DOC "Generate SALOME CALCULATOR documentation" ON)
+IF(SALOME_BUILD_TESTS)
+ ENABLE_TESTING()
+ENDIF()
+
# Find MED
# ===========
#### Now the specificities
# Options exported by the package:
-#SET(SALOME_CALCULATOR_BUILD_TESTS @SALOME_BUILD_TESTS@)
-SET(SALOME_CALCULATOR_BUILD_DOC @SALOME_BUILD_DOC@)
+SET(SALOME_CALCULATOR_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_CALCULATOR_BUILD_DOC @SALOME_BUILD_DOC@)
# Level 1 prerequisites:
SET_AND_CHECK(MED_ROOT_DIR_EXP "@PACKAGE_MED_ROOT_DIR@")