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

CMakeLists.txt
SalomeHexoticPLUGINConfig.cmake.in

index 8c810e713253a906987c3cc19e62c7aae20da62e..af063ce4acccb3697483d4dfe9c089505b20582a 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 HexoticPLUGIN documentation" ON)
 
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
+
 # Advanced options:
 OPTION(SALOME_BUILD_GUI "Enable HexoticPLUGIN GUI" ON)
 MARK_AS_ADVANCED(SALOME_BUILD_GUI)
index 2616d2cb23174bd0b5073ae519a995f8d7759d46..a08561b715e0a9472128c48668c8fc2f3dce43ce 100644 (file)
@@ -52,9 +52,8 @@ SET(HexoticPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
 #### Now the specificities
 
 # Options exported by the package:
-#SET(SALOME_HexoticPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
-SET(SALOME_HexoticPLUGIN_BUILD_DOC    @SALOME_BUILD_DOC@)
-
+SET(SALOME_HexoticPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_HexoticPLUGIN_BUILD_DOC   @SALOME_BUILD_DOC@)
 
 # Advanced options
 SET(SALOME_HexoticPLUGIN_BUILD_GUI @SALOME_BUILD_GUI@)