]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:22:16 +0000 (12:22 +0000)
committermpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:22:16 +0000 (12:22 +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
SalomeNETGENPLUGINConfig.cmake.in

index 5ac5cea6a77f1e184ba25e5bcd2d07a5e1fa16f5..c95582358ff86f1d2569e70d373b5149fe617eaa 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 NETGENPLUGIN documentation" ON)
 
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
+
 # Advanced options:
 OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
 
index 6b9e9dd94da004c6c4e4e2027315c9b90d189b37..9882b14c3c940a7839c04097a4d92eb12ecd51e2 100644 (file)
@@ -52,8 +52,8 @@ SET(NETGENPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
 #### 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@)