- delete kernel dependency because options are local now
- enable cmake testing for have message "No tests were
found" if module has not tests
LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
# User options
-# (some options have already been defined in KERNEL)
# ============
-#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 NETGENPLUGIN documentation" ON)
+IF(SALOME_BUILD_TESTS)
+ ENABLE_TESTING()
+ENDIF()
+
# Advanced options:
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
#### Now the specificities
# Options exported by the package:
-#SET(SALOME_NETGENPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
-SET(SALOME_NETGENPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@)
+SET(SALOME_NETGENPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_NETGENPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@)
# Advanced options
SET(SALOME_NETGENPLUGIN_BUILD_GUI @SALOME_BUILD_GUI@)