- enable cmake testing for have message "No tests were
found" if module has not tests
# Local macros:
LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
-# User options
-# (some options have already been defined in KERNEL)
+# User options
# ============
#OPTION(SALOME_BUILD_DOC "Generate SALOME ATOMGEN documentation" ON) #for use in the future
-#OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) #for use in the future
+OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
+
+IF(SALOME_BUILD_TESTS)
+ ENABLE_TESTING()
+ENDIF()
##
## From KERNEL:
# Options exported by the package:
#SET(SALOME_ATOMGEN_BUILD_DOC @SALOME_BUILD_DOC@)
-#SET(SALOME_ATOMGEN_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_ATOMGEN_BUILD_TESTS @SALOME_BUILD_TESTS@)
# Level 1 prerequisites:
SET_AND_CHECK(GUI_ROOT_DIR_EXP "@PACKAGE_GUI_ROOT_DIR@")