Salome HOME
CMake: BR_imps_2013 V7_3_0a1
authormpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:20:12 +0000 (12:20 +0000)
committermpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:20:12 +0000 (12:20 +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
SalomeJOBMANAGERConfig.cmake.in

index 6045bf340ca1414b42eaa7fa4d30ff31b07d3189..73959a0e50d8805d5ef3263f0e0eadeb0e963da4 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 JOBMANAGER documentation" ON)
 
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
+
 ##
 ## From KERNEL:
 ##
index 5f92a0b9df86b8fdd6d601261d33633f99106e4f..0a115305d5442ccae27ded075122a1019c99234a 100644 (file)
@@ -52,7 +52,7 @@ SET(JOBMANAGER_DEFINITIONS "@GUI_DEFINITIONS@")
 #### Now the specificities
 
 # Options exported by the package:
-#SET(SALOME_JOBMANAGER_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_JOBMANAGER_BUILD_TESTS @SALOME_BUILD_TESTS@)
 SET(SALOME_JOBMANAGER_BUILD_DOC   @SALOME_BUILD_DOC@)
 
 # Level 1 prerequisites: