]> SALOME platform Git repositories - plugins/ghs3dprlplugin.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:06:25 +0000 (12:06 +0000)
committermpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:06:25 +0000 (12:06 +0000)
- enable cmake testing for have message "No tests were
found" if module has not tests

CMakeLists.txt
SalomeGHS3DPRLPLUGINConfig.cmake.in

index dc72eb428dde651f8fea738e98ec25b4567c6173..9ba10498053d19ce6a1bb32bae2bdec85a41acbf 100755 (executable)
@@ -58,11 +58,14 @@ SET(BUILD_SHARED_LIBS TRUE)
 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 GHS3DPRLPLUGIN documentation" ON)
 
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
+
 # Advanced options:
 OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
 
index f545d7a6102c3bd293237ed54220e57652dd7f0a..c15375bec80f2c269fe48f28cc3d22fa230780f0 100644 (file)
@@ -52,7 +52,7 @@ SET(GHS3DPRLPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
 #### Now the specificities
 
 # Options exported by the package:
-#SET(SALOME_GHS3DPRLPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_GHS3DPRLPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
 SET(SALOME_GHS3DPRLPLUGIN_BUILD_DOC   @SALOME_BUILD_DOC@)
 
 SET(SALOME_GHS3DPRLPLUGIN_BUILD_GUI   @SALOME_BUILD_GUI@)