Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:06:05 +0000 (12:06 +0000)
committermpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:06:05 +0000 (12:06 +0000)
- enable cmake testing for have message "No tests were
found" if module has not tests

CMakeLists.txt
SalomeGHS3DPLUGINConfig.cmake.in

index f2963ec23724ab352c5fa9510c55135c2c30e9fa..031aab9751af1a0fb6009d3e678134a52eac1788 100755 (executable)
@@ -57,12 +57,15 @@ SET(BUILD_SHARED_LIBS TRUE)
 # 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_TESTS "Build SALOME tests" ON) #For use in the future
+OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
 OPTION(SALOME_BUILD_DOC "Generate SALOME GHS3DPLUGIN documentation" ON)
 
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
+
 # Advanced options:
 OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
 
index a3958976d77e8c9679abe624e5c2b103acdded0a..ffe829110ac99fd20bd6c537c010d12a27bf791e 100644 (file)
@@ -52,7 +52,7 @@ SET(GHS3DPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
 #### Now the specificities
 
 # Options exported by the package:
-#SET(SALOME_GHS3DPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_GHS3DPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
 SET(SALOME_GHS3DPLUGIN_BUILD_DOC   @SALOME_BUILD_DOC@)
 
 # Advanced options